divijvaidya opened a new pull request, #12281: URL: https://github.com/apache/kafka/pull/12281
## Problem #1 in DelegatingClassLoader.java Atomicity violation in example such as: Consider thread T1 reaches like 232 but before executing context switches to thread T2 which also reaches line 232. In such cases, one of the thread will overwrite the value of another. The code fix prevents such situation. ## Problem #2 in RocksDBMetricsRecordingTrigger.java Atomicity violation in example such as: Consider thread T1 reaches line 40 but before executing it context switches to thread T2 which also reaches line 40. In a serialized execution order, thread T2 should have thrown the exception but it won't in this case. The code change fixes that. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org