mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-03-06 09:20:07 +00:00
This closes #1265 ARTEMIS-1154 tweak logic to support previous semantics
This commit is contained in:
commit
ec49c4310b
@ -108,12 +108,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…
x
Reference in New Issue
Block a user