Skip to content

Commit

Permalink
add local store to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Navneet Sachan committed Nov 21, 2024
1 parent 316d148 commit 58ba7c2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,11 @@ public void replicateCyclic() {
remoteReplicaGroups.stream()
.filter(g -> g.isDone() && g.getException() != null)
.forEach(g -> logger.error("Remote node: {} Thread name: {} RemoteReplicaGroup {} has exception {}",
g.getRemoteDataNode(), threadName, g.getRemoteReplicaInfos(), g.getException()));
g.getRemoteDataNode(), threadName, g.getRemoteReplicaInfos()
.stream()
.map(remoteReplicaInfo -> remoteReplicaInfo.toString() + ": localstore "
+ remoteReplicaInfo.getLocalStore().toString())
.collect(Collectors.toList()), g.getException()));
} catch (Throwable e) {
logger.error("Thread name: {} found some error while replicating from remote hosts", threadName, e);
} finally {
Expand Down

0 comments on commit 58ba7c2

Please sign in to comment.