dcapwell commented on a change in pull request #31:
URL: 
https://github.com/apache/cassandra-in-jvm-dtest-api/pull/31#discussion_r798007144



##########
File path: 
src/main/java/org/apache/cassandra/distributed/shared/AbstractBuilder.java
##########
@@ -64,6 +64,16 @@
     private int datadirCount = 3;
     private final List<Rack> racks = new ArrayList<>();
     private boolean finalised;
+    private int tokenCount = getDefaultTokenCount();
+    private boolean allowVnodes = true;
+
+    protected int getDefaultTokenCount() {
+        String key = "cassandra.dtest.num_tokens";
+        String value = System.getProperty(key);
+        if (value == null)
+            value = System.getenv(key.replace(".", "_").toUpperCase());
+        return value == null ? 1 : Integer.parseInt(value);
+    }

Review comment:
       mck and I settled on just adding `-Dtest.jvm.args` to ant to pass 
through w/e we want, and that CI will use the system property method; leaving 
environment variable as its easier in some cases (its what I actually use)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to