majialoong commented on code in PR #22401:
URL: https://github.com/apache/kafka/pull/22401#discussion_r3319309224


##########
server/src/main/java/org/apache/kafka/server/logger/RuntimeLoggerManager.java:
##########
@@ -73,7 +72,12 @@ void alterLogLevelConfigs(Collection<AlterableConfig> ops) {
         ops.forEach(op -> {
             String loggerName = op.name();
             String logLevel = op.value();
-            switch (OpType.forId(op.configOperation())) {
+            OpType opType = OpType.forId(op.configOperation());

Review Comment:
   `OpType.forId` returns null for unknown ids, so report a clear error here 
instead of throwing an `NPE`.



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