mimaison commented on code in PR #21273:
URL: https://github.com/apache/kafka/pull/21273#discussion_r2832489738
##########
server/src/main/java/org/apache/kafka/server/BrokerLifecycleManager.java:
##########
@@ -144,7 +145,13 @@ public class BrokerLifecycleManager {
* to the Controller.
* This variable can only be read or written from the event queue thread.
*/
- private Map<Uuid, Boolean> offlineDirs = new HashMap<>();
+ private final Map<Uuid, Boolean> offlineDirs = new HashMap<>();
+
+ /**
+ * Map of cordoned log directories. The value is true if the directory is
cordoned.
+ * This variable can only be read or written from the event queue thread.
+ */
+ private final Map<Uuid, Boolean> cordonedLogDirs = new HashMap<>();
Review Comment:
Yes I think we could. I did it this way to copy `offlineDirs`.
--
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]