Debug log on testMergesHappening
This commit is contained in:
parent
7589ed7fbd
commit
6ae738a2eb
|
@ -27,6 +27,7 @@ import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.test.ESIntegTestCase;
|
import org.elasticsearch.test.ESIntegTestCase;
|
||||||
import org.elasticsearch.test.ESIntegTestCase.ClusterScope;
|
import org.elasticsearch.test.ESIntegTestCase.ClusterScope;
|
||||||
import org.elasticsearch.test.ESIntegTestCase.Scope;
|
import org.elasticsearch.test.ESIntegTestCase.Scope;
|
||||||
|
import org.elasticsearch.test.junit.annotations.TestLogging;
|
||||||
import org.hamcrest.Matchers;
|
import org.hamcrest.Matchers;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -38,8 +39,10 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFa
|
||||||
|
|
||||||
@ClusterScope(numDataNodes = 1, scope = Scope.SUITE)
|
@ClusterScope(numDataNodes = 1, scope = Scope.SUITE)
|
||||||
public class InternalEngineMergeIT extends ESIntegTestCase {
|
public class InternalEngineMergeIT extends ESIntegTestCase {
|
||||||
|
|
||||||
|
@TestLogging("_root:DEBUG")
|
||||||
public void testMergesHappening() throws InterruptedException, IOException, ExecutionException {
|
public void testMergesHappening() throws InterruptedException, IOException, ExecutionException {
|
||||||
final int numOfShards = randomIntBetween(1,5);
|
final int numOfShards = randomIntBetween(1, 5);
|
||||||
// some settings to keep num segments low
|
// some settings to keep num segments low
|
||||||
assertAcked(prepareCreate("test").setSettings(Settings.builder()
|
assertAcked(prepareCreate("test").setSettings(Settings.builder()
|
||||||
.put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, numOfShards)
|
.put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, numOfShards)
|
||||||
|
|
Loading…
Reference in New Issue