smiklosovic commented on code in PR #2966:
URL: https://github.com/apache/cassandra/pull/2966#discussion_r1423137855
##########
src/java/org/apache/cassandra/db/compaction/unified/Controller.java:
##########
@@ -598,10 +598,13 @@ public static Map<String, String>
validateOptions(Map<String, String> options) t
try
{
long sizeInBytes = FBUtilities.parseHumanReadableBytes(s);
+ if (sizeInBytes < 0)
+ throw new ConfigurationException(String.format("Invalid
configuration, %s should be greater than 0 (zero)",
+
MIN_SSTABLE_SIZE_OPTION));
// zero is a valid option to disable featue
int limit = (int) Math.ceil(targetSSTableSize *
INVERSE_SQRT_2);
- if (sizeInBytes != 0 && sizeInBytes < limit)
- throw new ConfigurationException(String.format("Invalid
configuration, %s should be 0 (zero) or greater than or equal to: %sB",
+ if (sizeInBytes != 0 && sizeInBytes >= limit )
Review Comment:
@Claudenw I will start the builds once this is addressed. Thank you.
--
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]