Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14771

Include current thread ids in ConcurrentModificationException message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8.2, 3.2.3
    • 3.5.0
    • clients

    Description

      In the KafkaConsumer.acquire method a ConcurrentModificationException exception is thrown when

       

      threadId != currentThread.get() && !currentThread.compareAndSet(NO_CURRENT_THREAD, threadId)

      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.

      Attachments

        Issue Links

          Activity

            People

              pierDipi Pierangelo Di Pilato
              pierDipi Pierangelo Di Pilato
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: