zuston commented on code in PR #3358:
URL: https://github.com/apache/fluss/pull/3358#discussion_r3285589399


##########
fluss-server/src/main/java/org/apache/fluss/server/utils/TableDescriptorValidation.java:
##########
@@ -417,6 +418,17 @@ private static void checkTieredLog(Configuration 
tableConf) {
         }
     }
 
+    private static void checkLogSegmentFileSize(Configuration tableConf) {
+        if (tableConf.contains(ConfigOptions.LOG_SEGMENT_FILE_SIZE)
+                && 
tableConf.get(ConfigOptions.LOG_SEGMENT_FILE_SIZE).getBytes()
+                        > Integer.MAX_VALUE) {
+            throw new InvalidConfigException(
+                    String.format(
+                            "Invalid configuration for %s, it must be less 
than or equal %d bytes.",
+                            ConfigOptions.LOG_SEGMENT_FILE_SIZE.key(), 
Integer.MAX_VALUE));
+        }
+    }
+
     private static void checkPartition(
             Configuration tableConf, List<String> partitionKeys, RowType 
rowType) {
         boolean isPartitioned = !partitionKeys.isEmpty();

Review Comment:
   cc @wuchong 



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

Reply via email to