Skip to content

Commit

Permalink
0006210: "Node failed to authenticate" in server logs after server
Browse files Browse the repository at this point in the history
restarts or client session expires
  • Loading branch information
erilong committed Jan 25, 2024
1 parent fdbdb22 commit a4240c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected void fireOffline(Exception exception, Node remoteNode, RemoteNodeStatu
log.warn("Authorization denied from {} at {}", new Object[] { remoteNode, syncUrl });
status.setStatus(Status.NOT_AUTHORIZED);
} else if (isAuthenticationExpired(exception)) {
log.debug("Authentication is required again to renew session");
log.info("Session expired, so will re-authenticate");
status.setStatus(Status.NOT_AUTHORIZED);
} else if (isSyncDisabled(exception)) {
log.warn("Sync was not enabled for {} at {}", new Object[] { remoteNode, syncUrl });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,11 @@ protected void logOrRethrow(Throwable ex, String sourceNodeId) throws IOExceptio
throw (HttpException) ex;
} else if (ex instanceof InvalidRetryException) {
throw (InvalidRetryException) ex;
} else if (ex instanceof ProtocolException || ex instanceof AuthenticationException || ex instanceof AuthenticationExpiredException) {
} else if (ex instanceof AuthenticationException) {
throw (AuthenticationException) ex;
} else if (ex instanceof AuthenticationExpiredException) {
throw (AuthenticationExpiredException) ex;
} else if (ex instanceof ProtocolException) {
log.error("Failed to process incoming batch from node '{}': {}{}", sourceNodeId, ex.getClass().getSimpleName(),
StringUtils.isNotBlank(ex.getMessage()) ? ": " + ex.getMessage() : "");
} else if (ex instanceof StagingLowFreeSpace) {
Expand Down

0 comments on commit a4240c4

Please sign in to comment.