]
Dennis Reed updated JGRP-1888:
------------------------------
Attachment: jgrp-1888-test.tar.gz
Attached test case (instead of checking it in, because it uses Byteman which isn't
that easy to integrate into 2.6.x tests)
FD_SOCK race condition during stop
----------------------------------
Key: JGRP-1888
URL:
https://issues.jboss.org/browse/JGRP-1888
Project: JGroups
Issue Type: Bug
Affects Versions: 2.6.16
Reporter: Dennis Reed
Assignee: Dennis Reed
Fix For: 2.6.23
Attachments: jgrp-1888-test.tar.gz
There is a race condition in FD_SOCK between stop() shutting down the pinger thread and
the BroadcastTask.
It first shuts down the broadcast task, and then the pinger thread.
If the pinger thread generates a new suspected event in this interval, it re-starts the
broadcast task, which creates a new thread suspecting that node repeatedly until the JVM
exits.