MicahRam commented on pull request #8181: URL: https://github.com/apache/kafka/pull/8181#issuecomment-692230839
oh @mjsax as far as the workaround we call `remove` before `add`, that solved the memory issue and for the most part solved the ConcurrentModificationException since less time is spent traversing the list. In our use case we can handle the value for that key in the headers being shared across partitions. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org