[TEST] Close TransportClient after it's used in BulkProcessorTests otherwise it will leave threads behind
This commit is contained in:
parent
da148ca8b8
commit
62002e8192
|
@ -187,6 +187,7 @@ public class BulkProcessorTests extends ElasticsearchIntegrationTest {
|
|||
|
||||
assertThat(listener.bulkFailures.size(), equalTo(totalExpectedBulkActions));
|
||||
assertThat(listener.bulkItems.size(), equalTo(0));
|
||||
transportClient.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
package org.elasticsearch.tribe;
|
||||
|
||||
import com.google.common.base.Predicate;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus;
|
||||
import org.elasticsearch.client.Client;
|
||||
|
@ -111,6 +110,7 @@ public class TribeTests extends ElasticsearchIntegrationTest {
|
|||
.put(tribe1Defaults.build())
|
||||
.put(tribe2Defaults.build())
|
||||
.put(internalCluster().getDefaultSettings())
|
||||
.put("node.name", "tribe_node") // make sure we can identify threads from this node
|
||||
.build();
|
||||
|
||||
tribeNode = NodeBuilder.nodeBuilder()
|
||||
|
|
Loading…
Reference in New Issue