You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ma...@apache.org on 2020/09/22 08:23:18 UTC

[cassandra-in-jvm-dtest-api] branch master updated: CASSANDRA-16109: if user has not set nodeCount, use the node id topology size (#20)

This is an automated email from the ASF dual-hosted git repository.

marcuse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cassandra-in-jvm-dtest-api.git


The following commit(s) were added to refs/heads/master by this push:
     new b0054ea  CASSANDRA-16109: if user has not set nodeCount, use the node id topology size (#20)
b0054ea is described below

commit b0054ea44f1311d938aaa22f775f4930a8a1419c
Author: Marcus Eriksson <ma...@apache.org>
AuthorDate: Tue Sep 22 10:22:54 2020 +0200

    CASSANDRA-16109: if user has not set nodeCount, use the node id topology size (#20)
---
 .../org/apache/cassandra/distributed/shared/AbstractBuilder.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/cassandra/distributed/shared/AbstractBuilder.java b/src/main/java/org/apache/cassandra/distributed/shared/AbstractBuilder.java
index 47f2d48..95e7e5d 100644
--- a/src/main/java/org/apache/cassandra/distributed/shared/AbstractBuilder.java
+++ b/src/main/java/org/apache/cassandra/distributed/shared/AbstractBuilder.java
@@ -292,7 +292,10 @@ public abstract class AbstractBuilder<I extends IInstance, C extends ICluster, B
             }
             else if (nodeIdTopology.size() > nodeCount)
             {
-                System.out.printf("nodeIdTopology configured for %d nodes while nodeCount is %d%n", nodeIdTopology.size(), nodeCount);
+                if (nodeCount == 0)
+                    nodeCount = nodeIdTopology.size();
+                else
+                    System.out.printf("nodeIdTopology configured for %d nodes while nodeCount is %d%n", nodeIdTopology.size(), nodeCount);
             }
         }
         else


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org