HDFS-16914. Add some logs for updateBlockForPipeline RPC. (#5381)
Reviewed-by: Shilun Fan <slfan1989@apache.org> Signed-off-by: Tao Li <tomscut@apache.org>
This commit is contained in:
parent
a5f48eacca
commit
723535b788
@ -1557,7 +1557,8 @@ public ReplicaHandler recoverAppend(
|
||||
@Override // FsDatasetSpi
|
||||
public Replica recoverClose(ExtendedBlock b, long newGS,
|
||||
long expectedBlockLen) throws IOException {
|
||||
LOG.info("Recover failed close " + b);
|
||||
LOG.info("Recover failed close {}, new GS:{}, expectedBlockLen:{}",
|
||||
b, newGS, expectedBlockLen);
|
||||
while (true) {
|
||||
try {
|
||||
try (AutoCloseableLock lock = lockManager.writeLock(LockLevel.VOLUME,
|
||||
|
@ -5939,6 +5939,8 @@ LocatedBlock bumpBlockGenerationStamp(ExtendedBlock block,
|
||||
}
|
||||
// Ensure we record the new generation stamp
|
||||
getEditLog().logSync();
|
||||
LOG.info("bumpBlockGenerationStamp({}, client={}) success",
|
||||
locatedBlock.getBlock(), clientName);
|
||||
return locatedBlock;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user