|
@@ -905,11 +905,11 @@ class FsDatasetImpl implements FsDatasetSpi<FsVolumeImpl> {
|
|
|
return new ReplicaInputStreams(
|
|
|
blockInStream, metaInStream, ref, datanode.getFileIoProvider());
|
|
|
} catch (IOException e) {
|
|
|
- IOUtils.cleanup(null, blockInStream);
|
|
|
+ IOUtils.cleanupWithLogger(null, blockInStream);
|
|
|
throw e;
|
|
|
}
|
|
|
} catch (IOException e) {
|
|
|
- IOUtils.cleanup(null, ref);
|
|
|
+ IOUtils.cleanupWithLogger(null, ref);
|
|
|
throw e;
|
|
|
}
|
|
|
}
|
|
@@ -1252,7 +1252,7 @@ class FsDatasetImpl implements FsDatasetSpi<FsVolumeImpl> {
|
|
|
replica = append(b.getBlockPoolId(), replicaInfo, newGS,
|
|
|
b.getNumBytes());
|
|
|
} catch (IOException e) {
|
|
|
- IOUtils.cleanup(null, ref);
|
|
|
+ IOUtils.cleanupWithLogger(null, ref);
|
|
|
throw e;
|
|
|
}
|
|
|
return new ReplicaHandler(replica, ref);
|
|
@@ -1384,7 +1384,7 @@ class FsDatasetImpl implements FsDatasetSpi<FsVolumeImpl> {
|
|
|
replica = (ReplicaInPipeline) replicaInfo;
|
|
|
}
|
|
|
} catch (IOException e) {
|
|
|
- IOUtils.cleanup(null, ref);
|
|
|
+ IOUtils.cleanupWithLogger(null, ref);
|
|
|
throw e;
|
|
|
}
|
|
|
return new ReplicaHandler(replica, ref);
|
|
@@ -1478,7 +1478,7 @@ class FsDatasetImpl implements FsDatasetSpi<FsVolumeImpl> {
|
|
|
+ " for block " + b.getBlockId());
|
|
|
}
|
|
|
} catch (IOException e) {
|
|
|
- IOUtils.cleanup(null, ref);
|
|
|
+ IOUtils.cleanupWithLogger(null, ref);
|
|
|
throw e;
|
|
|
}
|
|
|
|
|
@@ -1570,7 +1570,7 @@ class FsDatasetImpl implements FsDatasetSpi<FsVolumeImpl> {
|
|
|
// bump the replica's generation stamp to newGS
|
|
|
rbw.getReplicaInfo().bumpReplicaGS(newGS);
|
|
|
} catch (IOException e) {
|
|
|
- IOUtils.cleanup(null, ref);
|
|
|
+ IOUtils.cleanupWithLogger(null, ref);
|
|
|
throw e;
|
|
|
}
|
|
|
return new ReplicaHandler(rbw, ref);
|
|
@@ -1716,7 +1716,7 @@ class FsDatasetImpl implements FsDatasetSpi<FsVolumeImpl> {
|
|
|
try {
|
|
|
newReplicaInfo = v.createTemporary(b);
|
|
|
} catch (IOException e) {
|
|
|
- IOUtils.cleanup(null, ref);
|
|
|
+ IOUtils.cleanupWithLogger(null, ref);
|
|
|
throw e;
|
|
|
}
|
|
|
|