mirror of https://github.com/apache/kafka.git
This PR simplifies two ConcurrentHashMap fields by removing their Atomic wrappers: - Change `brokerContactTimesMs` from `ConcurrentHashMap<Integer, AtomicLong>` to `ConcurrentHashMap<Integer, Long>`. - Change `brokerRegistrationStates` from `ConcurrentHashMap<Integer, AtomicInteger>` to `ConcurrentHashMap<Integer, Integer>`. This removes mutable holders without affecting thread safety (see discussion in #19828). Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, TengYao Chi <frankvicky@apache.org>, Kevin Wu <kevin.wu2412@gmail.com>, Ken Huang <s7133700@gmail.com> |
||
---|---|---|
.. | ||
src | ||
.gitignore |