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

ForkProtocolStack is not thread-safe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.5.0, 5.4.12, 5.3.22
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Due to how ArrayList is implemented it is possible to create a race condition where if ForkProtocolStack.destroy() is called at the same time as ForkProtocolStack.getProtocols() the returned list will contain null elements.

      The issue is intermittent but as far as I can tell making the getProtocols method synchronized fixes it.

              rhn-engineering-bban Bela Ban
              mpetrov@redhat.com Michal Petrov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: