hi Ming Thanks for this KIP. please take a look at following questions
chia_00: The description “ Note that because the Consumer is not thread-safe, if other threads can modify the RecordHeader through the Consumer, its thread-safety can no longer be guaranteed.” is a bit weird to me. Did you mean RecordHeaders chia_01: Could you please add conclusion for the benchmark? It seems the performance regression caused by double check is very small, right? chia_02: JMH is not included by our CI, so it would be helpful to write a UT. Best, Chia-Ping > Ming-Yen Chung <mingyen...@gmail.com> 於 2025年8月19日 晚上11:00 寫道: > > Hi all, > > I would like to start a discussions on KIP-1205: Improve RecordHeader to be > Thread-Safe: > > https://cwiki.apache.org/confluence/display/KAFKA/KIP-1205%3A+Improve+RecordHeader+to+be+Thread-Safe > > This proposal uses double-checked locking and volatile to make RecordHeader > thread-safe. > > > Best, > Ming-Yen