kamalcph commented on code in PR #20913:
URL: https://github.com/apache/kafka/pull/20913#discussion_r3294897065


##########
storage/src/main/java/org/apache/kafka/storage/internals/log/LogConfig.java:
##########
@@ -138,6 +144,10 @@ public Optional<String> serverConfigName(String 
configName) {
     public static final boolean DEFAULT_REMOTE_LOG_DELETE_ON_DISABLE_CONFIG = 
false;
     public static final long DEFAULT_LOCAL_RETENTION_BYTES = -2; // It 
indicates the value to be derived from RetentionBytes
     public static final long DEFAULT_LOCAL_RETENTION_MS = -2; // It indicates 
the value to be derived from RetentionMs
+    public static final long DEFAULT_REMOTE_COPY_LAG_MS = -2;  // It indicates 
no delay check based on local retention ms
+    public static final long DEFAULT_REMOTE_COPY_LAG_BYTES = -2; // It 
indicates no delay check based on local retention bytes

Review Comment:
   > as it allows users to configure only the lag value they actually care 
about.
   
   This can cause leakages. Assume that the user configure only the remote-copy 
lag time to 24 hrs. Retention time = 48 hrs, Local retention time = 24 hrs, and 
retention size = 100 GB. And, the incoming traffic is ~100 GB per hour, then it 
might cause leakage as we don't allow uploading the segment up-to 24 hrs, 
there-by deletion from local-log is also not allowed. 



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