Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1286

ConcurrentModificationException encountered when starting JGroups 2.12RC1 when diagnostics is enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.12
    • 2.12
    • None
    • Workaround Exists
    • Hide

      If you run with enable_diagnostics=false then this will never be seen. However the default for protocols is to be enabled.

      Show
      If you run with enable_diagnostics=false then this will never be seen. However the default for protocols is to be enabled.
    • Hide

      Unfortunately this is nondeterministic and I have only been able to reproduce it once. It can happen with any protocol with enable_diagnostics=true

      As far as I can tell the channel will still work as desired, except for some diagnostic features will not work correctly and the stack trace is shown, which can scare users.

      Show
      Unfortunately this is nondeterministic and I have only been able to reproduce it once. It can happen with any protocol with enable_diagnostics=true As far as I can tell the channel will still work as desired, except for some diagnostic features will not work correctly and the stack trace is shown, which can scare users.

    Description

      I saw this error once when starting up my server using the default TCP.xml file. I have not been able to reproduce it more than once.
      I just wanted to submit this so that the handlers object can be properly protected via synchronization or java.util.concurrent related facility.

      48 E 15:55:19,696 (TCP ) failure handling diagnostics request java.util.ConcurrentModificationException
      at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
      at java.util.HashMap$KeyIterator.next(Unknown Source)
      at org.jgroups.protocols.TP$DiagnosticsHandler.handleDiagnosticProbe(TP.java:2157)
      at org.jgroups.protocols.TP$DiagnosticsHandler.run(TP.java:2130)
      at java.lang.Thread.run(Unknown Source)

      Attachments

        Activity

          People

            rhn-engineering-bban Bela Ban
            rpwburns William Burns (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: