HDFS-4036. Remove "throw UnresolvedLinkException" from FSDirectory.unprotectedAddFile(..). Contributed by Jing Zhao
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1398293 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ad06a08713
commit
698fa5077a
@ -385,6 +385,9 @@ Release 2.0.3-alpha - Unreleased
|
|||||||
HDFS-4037. Rename the getReplication() method in BlockCollection to
|
HDFS-4037. Rename the getReplication() method in BlockCollection to
|
||||||
getBlockReplication(). (szetszwo)
|
getBlockReplication(). (szetszwo)
|
||||||
|
|
||||||
|
HDFS-4036. Remove "throw UnresolvedLinkException" from
|
||||||
|
FSDirectory.unprotectedAddFile(..). (Jing Zhao via szetszwo)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
@ -213,8 +213,9 @@ void waitForReady() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Add the given filename to the fs.
|
* Add the given filename to the fs.
|
||||||
* @throws QuotaExceededException
|
|
||||||
* @throws FileAlreadyExistsException
|
* @throws FileAlreadyExistsException
|
||||||
|
* @throws QuotaExceededException
|
||||||
|
* @throws UnresolvedLinkException
|
||||||
*/
|
*/
|
||||||
INodeFileUnderConstruction addFile(String path,
|
INodeFileUnderConstruction addFile(String path,
|
||||||
PermissionStatus permissions,
|
PermissionStatus permissions,
|
||||||
@ -265,8 +266,6 @@ INodeFileUnderConstruction addFile(String path,
|
|||||||
return newNode;
|
return newNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
INode unprotectedAddFile( String path,
|
INode unprotectedAddFile( String path,
|
||||||
PermissionStatus permissions,
|
PermissionStatus permissions,
|
||||||
short replication,
|
short replication,
|
||||||
@ -275,8 +274,7 @@ INode unprotectedAddFile( String path,
|
|||||||
long preferredBlockSize,
|
long preferredBlockSize,
|
||||||
boolean underConstruction,
|
boolean underConstruction,
|
||||||
String clientName,
|
String clientName,
|
||||||
String clientMachine)
|
String clientMachine) {
|
||||||
throws UnresolvedLinkException {
|
|
||||||
INode newNode;
|
INode newNode;
|
||||||
assert hasWriteLock();
|
assert hasWriteLock();
|
||||||
if (underConstruction) {
|
if (underConstruction) {
|
||||||
|
Loading…
Reference in New Issue
Block a user