clolov commented on code in PR #16132:
URL: https://github.com/apache/kafka/pull/16132#discussion_r1624512832


##########
storage/src/main/java/org/apache/kafka/storage/internals/log/LogConfig.java:
##########
@@ -179,6 +182,7 @@ public Optional<String> serverConfigName(String configName) 
{
     public static final boolean DEFAULT_REMOTE_STORAGE_ENABLE = 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 String DEFAULT_REMOTE_LOG_DISABLE_POLICY = "retain";

Review Comment:
   Sorry, I am not certain I understand - the two options with respect to 
validation are already defined on line 283 i.e. `in("retain", "delete")`. Do 
you want something along the lines of:
   ```
   public static final List<String> REMOTE_LOG_DISABLE_POLICY_VALID_VALUES = 
Arrays.asList("retain", "delete");
   
   ...
   
   .defineInternal(TopicConfig.REMOTE_LOG_DISABLE_POLICY_CONFIG, STRING, 
DEFAULT_REMOTE_LOG_DISABLE_POLICY, in(REMOTE_LOG_DISABLE_POLICY_VALID_VALUES),
                   MEDIUM, TopicConfig.REMOTE_LOG_DISABLE_POLICY_DOC);
   ```



-- 
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: jira-unsubscr...@kafka.apache.org

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

Reply via email to