jojochuang commented on code in PR #6444:
URL: https://github.com/apache/ozone/pull/6444#discussion_r1546717403
##########
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/BlockInputStream.java:
##########
@@ -217,18 +217,19 @@ private boolean isConnectivityIssue(IOException ex) {
}
private void refreshBlockInfo(IOException cause) throws IOException {
- LOG.info("Unable to read information for block {} from pipeline {}: {}",
+ LOG.info("Attempting to update pipeline and block token for block {} from
pipeline {}: {}",
blockID, pipelineRef.get().getId(), cause.getMessage());
if (refreshFunction != null) {
LOG.debug("Re-fetching pipeline and block token for block {}", blockID);
BlockLocationInfo blockLocationInfo = refreshFunction.apply(blockID);
if (blockLocationInfo == null) {
LOG.debug("No new block location info for block {}", blockID);
} else {
- LOG.debug("New pipeline for block {}: {}", blockID,
- blockLocationInfo.getPipeline());
setPipeline(blockLocationInfo.getPipeline());
tokenRef.set(blockLocationInfo.getToken());
+ LOG.info("New pipeline for block {}: {}", blockID,
+ blockLocationInfo.getPipeline());
+ LOG.info("A new token is added {}", blockLocationInfo.getToken());
Review Comment:
How about logging the expiry time of the token?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]