HDFS-5164. DeleteSnapshot should check if OperationCategory.WRITE is possible before taking write lock (contributed by Colin Patrick McCabe)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1520494 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4c66560499
commit
461587e36a
|
@ -45,6 +45,9 @@ Release 2.3.0 - UNRELEASED
|
||||||
HDFS-4816. transitionToActive blocks if the SBN is doing checkpoint image
|
HDFS-4816. transitionToActive blocks if the SBN is doing checkpoint image
|
||||||
transfer. (Andrew Wang)
|
transfer. (Andrew Wang)
|
||||||
|
|
||||||
|
HDFS-5164. deleteSnapshot should check if OperationCategory.WRITE is
|
||||||
|
possible before taking write lock. (Colin Patrick McCabe)
|
||||||
|
|
||||||
Release 2.1.1-beta - UNRELEASED
|
Release 2.1.1-beta - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -6750,6 +6750,7 @@ public class FSNamesystem implements Namesystem, FSClusterStats,
|
||||||
return; // Return previous response
|
return; // Return previous response
|
||||||
}
|
}
|
||||||
boolean success = false;
|
boolean success = false;
|
||||||
|
checkOperation(OperationCategory.WRITE);
|
||||||
writeLock();
|
writeLock();
|
||||||
try {
|
try {
|
||||||
checkOperation(OperationCategory.WRITE);
|
checkOperation(OperationCategory.WRITE);
|
||||||
|
|
Loading…
Reference in New Issue