mirror of https://github.com/apache/activemq.git
fix for intermittent failure of org.apache.activegroups.GroupStateTest.testExpire test
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@803465 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bc72c54a65
commit
d183e3a7c1
|
@ -1340,8 +1340,8 @@ public class Group<K, V> implements Map<K, V>, Service {
|
|||
|
||||
void checkMembership() {
|
||||
if (this.started.get() && this.electionFinished.get()) {
|
||||
long checkTime = System.currentTimeMillis() - getHeartBeatInterval();
|
||||
boolean doElection = false;
|
||||
long checkTime = System.currentTimeMillis() - (2 * getHeartBeatInterval()); // give it a bit more time since scheduler can be late
|
||||
boolean doElection = false;
|
||||
for (Member member : this.members.values()) {
|
||||
if (member.getTimeStamp() < checkTime) {
|
||||
LOG.info("Member timestamp expired " + member);
|
||||
|
|
Loading…
Reference in New Issue