Skip to content

refresh relayFilter after relay changed #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ protected void doPickRelay(ConnectionState curState)
{
relayConn = _sourcesConn.getRelayConnFactory().createRelayConnection(
serverInfo, this, _remoteExceptionHandler);
afterRelayChange();
_log.info("picked a relay:" + serverInfo.toSimpleString());
}
catch (Exception e)
Expand Down Expand Up @@ -513,6 +514,11 @@ private String buildSubsList(List<DatabusSubscription> subs, Map<String, IdNameP
sb.append("]");
return sb.toString();
}

private void afterRelayChange()
{
_relayFilter = null;
}

protected void doSourcesResponseSuccess(ConnectionState curState)
{
Expand Down Expand Up @@ -1186,6 +1192,7 @@ private boolean onRelayFellOff(ConnectionState curState, Checkpoint cp, Throwabl
@Override
protected void tearConnection()
{
afterRelayChange();
_currentState.setRelayFellOff(false);
super.tearConnection();
}
Expand Down