swuferhong commented on code in PR #2837:
URL: https://github.com/apache/fluss/pull/2837#discussion_r2918564814


##########
fluss-server/src/main/java/org/apache/fluss/server/replica/ReplicaManager.java:
##########
@@ -326,6 +332,44 @@ public DefaultSnapshotContext getKvSnapshotContext() {
         return kvSnapshotContext;
     }
 
+    public int getMinInSyncReplicas() {
+        return minInSyncReplicas;
+    }
+
+    // ============ ServerReconfigurable Implementation ============
+
+    @Override
+    public void validate(Configuration newConfig) throws ConfigException {
+        // Type validation is already handled by DynamicServerConfig.
+        // Here we only do basic sanity checks.
+        int newMinInSyncReplicas =
+                
newConfig.get(ConfigOptions.LOG_REPLICA_MIN_IN_SYNC_REPLICAS_NUMBER);
+        if (newMinInSyncReplicas <= 0) {

Review Comment:
   After offline discussions, it was decided that the behavior of dynamic 
config should be consistent with the behavior of the default cluster 
configuration at cluster startup, without imposing an upper limit on the 
configuration.



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