shoemoney opened a new pull request, #23274:
URL: https://github.com/apache/kafka/pull/23274

   Fixes thread-safety race in Utils.humanReadableByteCount.
   
   Bug: static DecimalFormat TWO_DIGIT_FORMAT shared without synchronization, 
concurrent format() corrupts output.
   Fix: wrap in ThreadLocal with withInitial supplier, use get().format() at 
call site.
   
   Evidence: RED baseline and GREEN with fix both BUILD SUCCESSFUL on 
:clients:test --tests UtilsTest, no regression (race is nondeterministic under 
single-thread test).
   
   Written in conjunction with my pair programmer Claude.


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