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 @@ class FsDatasetImpl implements FsDatasetSpi<FsVolumeImpl> {
|
|||
@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 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
|||
}
|
||||
// Ensure we record the new generation stamp
|
||||
getEditLog().logSync();
|
||||
LOG.info("bumpBlockGenerationStamp({}, client={}) success",
|
||||
locatedBlock.getBlock(), clientName);
|
||||
return locatedBlock;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue