smiklosovic commented on code in PR #4523:
URL: https://github.com/apache/cassandra/pull/4523#discussion_r2637409130


##########
src/java/org/apache/cassandra/db/compression/ZstdDictionaryTrainer.java:
##########
@@ -68,17 +68,23 @@ public class ZstdDictionaryTrainer implements 
ICompressionDictionaryTrainer
     private volatile TrainingStatus currentTrainingStatus;
     private volatile String failureMessage;
 
-    public ZstdDictionaryTrainer(String keyspaceName, String tableName,
-                                 CompressionDictionaryTrainingConfig config,
-                                 int compressionLevel)
+    public ZstdDictionaryTrainer(String keyspaceName, String tableName, int 
compressionLevel)
+    {
+        this(keyspaceName,
+             tableName,
+             compressionLevel,
+             Math.round(1 / 
DatabaseDescriptor.getCompressionDictionaryTrainingSamplingRate()));
+    }
+
+    @VisibleForTesting
+    public ZstdDictionaryTrainer(String keyspaceName, String tableName, int 
compressionLevel, int samplingRate)

Review Comment:
   I would keep it as it is.



-- 
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