From 9f909988f832bbfa2e99c085e404b04a4a068848 Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Fri, 23 Jan 2015 17:25:45 +0000 Subject: [PATCH] Use collection counter as the thread name itself git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1654277 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/solr/cloud/CollectionsAPIDistributedZkTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java index 8c543d2f73b..8a0b02a5ec4 100644 --- a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java +++ b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java @@ -880,10 +880,8 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBa class CollectionThread extends Thread { - private String name; - public CollectionThread(String name) { - this.name = name; + super(name); } public void run() { @@ -892,7 +890,7 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBa int cnt = random().nextInt(TEST_NIGHTLY ? 13 : 1) + 1; for (int i = 0; i < cnt; i++) { - String collectionName = "awholynewstresscollection_" + name + "_" + i; + String collectionName = "awholynewstresscollection_" + getName() + "_" + i; int numShards = TestUtil.nextInt(random(), 0, getShardCount() * 2) + 1; int replicationFactor = TestUtil.nextInt(random(), 0, 3) + 1; int maxShardsPerNode = (((numShards * 2 * replicationFactor) / getCommonCloudSolrClient()