Details
-
Improvement
-
Status: Patch Available
-
Minor
-
Resolution: Unresolved
-
0.9.0.1
-
None
-
None
Description
KafkaConsumer.acquire throws ConcurrentModificationException if the current thread it does not match the currentThread field. It would be useful if the name of the other thread was included in the exception message to help debug the problem when this exception occurs.
As it stands, it can be really difficult to work out what's going wrong when there's several threads all accessing the consumer at the same time, and your existing exclusive access logic doesn't seem to be working as it should.