Skip to content

Commit

Permalink
update log information
Browse files Browse the repository at this point in the history
  • Loading branch information
hangc0276 committed Feb 18, 2023
1 parent 75aad86 commit 2f22475
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,8 @@ public BookieNode selectFromNetworkLocation(
networkLoc, excludeBookies);
throw e;
}
LOG.warn("Failed to choose a bookie from {} : leaves {}, excluded bookies {}, "
LOG.warn("Failed to choose a bookie from network location {}, "
+ "the bookies in the network location are {}, excluded bookies {}, "
+ "current ensemble {}, fallback to choose bookie randomly from the cluster.",
networkLoc, topology.getLeaves(networkLoc), excludeBookies, ensemble);
// randomly choose one from whole cluster, ignore the provided predicate.
Expand All @@ -544,7 +545,8 @@ public BookieNode selectFromNetworkLocation(String networkLoc,
* the whole cluster and exclude the racks specified at
* <tt>excludeRacks</tt>.
*/
LOG.warn("Failed to choose a bookie node from {} : leaves {}, exclude Bookies {}, "
LOG.warn("Failed to choose a bookie node from network location {}, "
+ "the bookies in the network location are {}, excluded bookies {}, "
+ "current ensemble {}, fallback to choose bookie randomly from the cluster.",
networkLoc, topology.getLeaves(networkLoc), excludeBookies, ensemble);
return selectFromNetworkLocation(excludeRacks, excludeBookies, predicate, ensemble, fallbackToRandom);
Expand Down

0 comments on commit 2f22475

Please sign in to comment.