ARTEMIS-1154 tweak logic to support previous semantics
(cherry picked from commit 88e185d2b9
)
This commit is contained in:
parent
7e4de767b7
commit
7ed40326c8
|
@ -105,12 +105,17 @@ public class SharedNothingBackupQuorum implements Quorum, SessionFailureListener
|
|||
signal = BACKUP_ACTIVATION.FAIL_OVER;
|
||||
}
|
||||
|
||||
if (networkHealthCheck != null && !networkHealthCheck.isEmpty() && networkHealthCheck.check()) {
|
||||
// live is assumed to be down, backup fails-over
|
||||
signal = BACKUP_ACTIVATION.FAIL_OVER;
|
||||
} else {
|
||||
ActiveMQServerLogger.LOGGER.serverIsolatedOnNetwork();
|
||||
signal = BACKUP_ACTIVATION.FAILURE_REPLICATING;
|
||||
/* use NetworkHealthCheck to determine if node is isolated
|
||||
* if there are no addresses/urls configured then ignore and rely on quorum vote only
|
||||
*/
|
||||
if (networkHealthCheck != null && !networkHealthCheck.isEmpty()) {
|
||||
if (networkHealthCheck.check()) {
|
||||
// live is assumed to be down, backup fails-over
|
||||
signal = BACKUP_ACTIVATION.FAIL_OVER;
|
||||
} else {
|
||||
ActiveMQServerLogger.LOGGER.serverIsolatedOnNetwork();
|
||||
signal = BACKUP_ACTIVATION.FAILURE_REPLICATING;
|
||||
}
|
||||
}
|
||||
}
|
||||
latch.countDown();
|
||||
|
|
Loading…
Reference in New Issue