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

TP.registerProbeHandler not thread safe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 3.5
    • 3.2.12
    • None

      TP.registerProbeHandlers is not thread safe since it modifies preregistered_probe_handlers outside of any synchronization.

      If a thread calls this method while another thread is inside startDiagnostics (which can happen easily with a shared transport), it can cause a NullPointerException when startDiagnostics is looping through preregistered_probe_handlers.

      Access to preregistered_probe_handlers should be synchronized.

              rhn-engineering-bban Bela Ban
              rhn-support-dereed Dennis Reed
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: