Skip to content

Commit

Permalink
add local store to logs (#2947)
Browse files Browse the repository at this point in the history
Co-authored-by: Navneet Sachan <nsachan@nsachan-mn1.linkedin.biz>
  • Loading branch information
manbearpig1996 and Navneet Sachan authored Nov 21, 2024
1 parent 316d148 commit d33bb81
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 d33bb81

Please sign in to comment.