当它只有两个节点时,我正在研究与故障转移测试有关的问题。这是场景。
测试步骤:
调查步骤:
if (discoveryConnections && ! ok) {
if (failedDestinations != null)
{
failedDestinations.clear();
}
Logs.INVOCATION.tracef("EJB discovery provider: all connections marked failed, retrying ...");
for (EJBClientConnection connection : configuredConnections) {
if (! connection.isForDiscovery()) {
continue;
}
URI destination = connection.getDestination();
Logs.INVOCATION.tracef("EJB discovery provider: attempting to connect to connection %s", destination);
discoveryAttempt.connectAndDiscover(destination, null);
}
}
但是要进行适当的故障转移,当节点启动并运行时,应该从JBoss failddestination缓存对象中清除它。
这使两个节点均处于故障和缓存状态,服务器启动时不会清除