Enable engine debug log for testMaybeFlush

Relates #52223
This commit is contained in:
Nhat Nguyen 2020-03-31 23:12:02 -04:00
parent 987b6ecffa
commit c2506af8a6
1 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,7 @@ import org.elasticsearch.test.DummyShardLock;
import org.elasticsearch.test.ESSingleNodeTestCase;
import org.elasticsearch.test.IndexSettingsModule;
import org.elasticsearch.test.InternalSettingsPlugin;
import org.elasticsearch.test.junit.annotations.TestIssueLogging;
import org.junit.Assert;
import java.io.IOException;
@ -337,6 +338,9 @@ public class IndexShardIT extends ESSingleNodeTestCase {
assertPathHasBeenCleared(newIndexDataPath.toAbsolutePath());
}
@TestIssueLogging(
value = "org.elasticsearch.index.engine:DEBUG",
issueUrl = "https://github.com/elastic/elasticsearch/issues/52223")
public void testMaybeFlush() throws Exception {
createIndex("test", Settings.builder().put(IndexSettings.INDEX_TRANSLOG_DURABILITY_SETTING.getKey(), Translog.Durability.REQUEST)
.build());