mirror of https://github.com/apache/lucene.git
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
This commit is contained in:
parent
e7525ee92e
commit
9f909988f8
|
@ -880,10 +880,8 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBa
|
||||||
|
|
||||||
class CollectionThread extends Thread {
|
class CollectionThread extends Thread {
|
||||||
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
public CollectionThread(String name) {
|
public CollectionThread(String name) {
|
||||||
this.name = name;
|
super(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void run() {
|
public void run() {
|
||||||
|
@ -892,7 +890,7 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBa
|
||||||
int cnt = random().nextInt(TEST_NIGHTLY ? 13 : 1) + 1;
|
int cnt = random().nextInt(TEST_NIGHTLY ? 13 : 1) + 1;
|
||||||
|
|
||||||
for (int i = 0; i < cnt; i++) {
|
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 numShards = TestUtil.nextInt(random(), 0, getShardCount() * 2) + 1;
|
||||||
int replicationFactor = TestUtil.nextInt(random(), 0, 3) + 1;
|
int replicationFactor = TestUtil.nextInt(random(), 0, 3) + 1;
|
||||||
int maxShardsPerNode = (((numShards * 2 * replicationFactor) / getCommonCloudSolrClient()
|
int maxShardsPerNode = (((numShards * 2 * replicationFactor) / getCommonCloudSolrClient()
|
||||||
|
|
Loading…
Reference in New Issue