dcapwell commented on code in PR #4087:
URL: https://github.com/apache/cassandra/pull/4087#discussion_r2078236788


##########
src/java/org/apache/cassandra/db/compaction/unified/Controller.java:
##########
@@ -622,12 +628,12 @@ public static Map<String, String> 
validateOptions(Map<String, String> options) t
                 if (sizeInBytes < 0)
                     throw new ConfigurationException(String.format("Invalid 
configuration, %s should be greater than or equal to 0 (zero)",
                                                                    
MIN_SSTABLE_SIZE_OPTION));
-                int limit = (int) Math.ceil(targetSSTableSize * 
INVERSE_SQRT_2);
+                long limit = (long) Math.ceil(targetSSTableSize * 
INVERSE_SQRT_2);
                 if (sizeInBytes >= limit)
-                    throw new ConfigurationException(String.format("Invalid 
configuration, %s (%s) should be less than the target size minimum: %s",
+                    throw new ConfigurationException(String.format("Invalid 
configuration, %s (%s) should be less than 70%% of the targetSSTableSize (%s)",

Review Comment:
   ```
   jshell> String.format("should be less than 70%%")
   $1 ==> "should be less than 70%"
   ```



-- 
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: pr-unsubscr...@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org
For additional commands, e-mail: pr-h...@cassandra.apache.org

Reply via email to