Pierangelo Di Pilato created KAFKA-14771:
--------------------------------------------
Summary: Include current thread ids in
ConcurrentModificationException message
Key: KAFKA-14771
URL: https://issues.apache.org/jira/browse/KAFKA-14771
Project: Kafka
Issue Type: Improvement
Components: clients
Affects Versions: 3.2.3, 2.8.2
Reporter: Pierangelo Di Pilato
In the KafkaConsumer.acquire method a ConcurrentModificationException exception
is thrown when
{code:java}
threadId != currentThread.get() &&
!currentThread.compareAndSet(NO_CURRENT_THREAD, threadId){code}
however, the exception message doesn't include:
* Thread.currentThread().getId()
* currentThread.get()
I think including the aforementioned variables is very useful for debugging the
issue.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)