jsancio commented on code in PR #21053:
URL: https://github.com/apache/kafka/pull/21053#discussion_r2770338817
##########
shell/src/main/java/org/apache/kafka/shell/MetadataShell.java:
##########
@@ -148,10 +152,13 @@ public MetadataShell(
private void initializeWithSnapshotFileReader() throws Exception {
this.fileLock = takeDirectoryLockIfExists(parentParent(new
File(snapshotPath)));
+ DynamicConfigValidator dynamicConfigValidator = new
ControllerConfigurationValidator(new KafkaConfig(new Properties(), false));
+
this.loader = new MetadataLoader.Builder().
setFaultHandler(faultHandler).
setNodeId(-1).
setHighWaterMarkAccessor(() ->
snapshotFileReader.highWaterMark()).
+ setConfigValidator(dynamicConfigValidator).
Review Comment:
The default can be a predicate (or config checker) that always returns true.
--
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]