This commit is contained in:
zytel3301 2026-08-01 14:12:18 +03:00 committed by GitHub
commit 6689d9c30b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 14 deletions

View File

@ -243,8 +243,6 @@ public enum CassandraRelevantProperties
DTEST_IGNORE_SHUTDOWN_THREADCOUNT("jvm_dtests.ignore_shutdown_threadcount"),
/** This property indicates if the code is running under the in-jvm dtest framework */
DTEST_IS_IN_JVM_DTEST("org.apache.cassandra.dtest.is_in_jvm_dtest"),
/** In_JVM dtest property indicating that the test should use "latest" configuration */
DTEST_JVM_DTESTS_USE_LATEST("jvm_dtests.latest"),
ENABLE_DC_LOCAL_COMMIT("cassandra.enable_dc_local_commit", "true"),
/**
* Whether {@link org.apache.cassandra.db.ConsistencyLevel#NODE_LOCAL} should be allowed.
@ -881,10 +879,10 @@ public enum CassandraRelevantProperties
*/
public int getInt()
{
String value = System.getProperty(key);
if (value == null && defaultVal == null)
String value = System.getProperty(key, defaultVal);
if (value == null)
throw new ConfigurationException("Missing property value or default value is not set: " + key);
return INTEGER_CONVERTER.convert(value == null ? defaultVal : value);
return INTEGER_CONVERTER.convert(value);
}
/**
@ -893,10 +891,10 @@ public enum CassandraRelevantProperties
*/
public long getLong()
{
String value = System.getProperty(key);
if (value == null && defaultVal == null)
String value = System.getProperty(key, defaultVal);
if (value == null)
throw new ConfigurationException("Missing property value or default value is not set: " + key);
return LONG_CONVERTER.convert(value == null ? defaultVal : value);
return LONG_CONVERTER.convert(value);
}
/**
@ -918,10 +916,10 @@ public enum CassandraRelevantProperties
*/
public double getDouble()
{
String value = System.getProperty(key);
if (value == null && defaultVal == null)
String value = System.getProperty(key, defaultVal);
if (value == null)
throw new ConfigurationException("Missing property value or default value is not set: " + key);
return DOUBLE_CONVERTER.convert(value == null ? defaultVal : value);
return DOUBLE_CONVERTER.convert(value);
}
/**
@ -943,10 +941,10 @@ public enum CassandraRelevantProperties
*/
public long getSizeInBytes()
{
String value = System.getProperty(key);
if (value == null && defaultVal == null)
String value = System.getProperty(key, defaultVal);
if (value == null)
throw new ConfigurationException("Missing property value or default value is not set: " + key);
return SIZE_IN_BYTES_CONVERTER.convert(value == null ? defaultVal : value);
return SIZE_IN_BYTES_CONVERTER.convert(value);
}
/**