HDFS-8231. StackTrace displayed at client while QuotaByStorageType exceeds (Contributed by J.Andreina and Xiaoyu Yao)

This commit is contained in:
Vinayakumar B 2015-04-24 12:51:04 +05:30
parent 262c1bc339
commit c8d72907ff
5 changed files with 16 additions and 0 deletions

View File

@ -548,6 +548,9 @@ Release 2.8.0 - UNRELEASED
HDFS-8217. During block recovery for truncate Log new Block Id in case of HDFS-8217. During block recovery for truncate Log new Block Id in case of
copy-on-truncate is true. (vinayakumarb) copy-on-truncate is true. (vinayakumarb)
HDFS-8231. StackTrace displayed at client while QuotaByStorageType exceeds
(J.Andreina and Xiaoyu Yao via vinayakumarb)
Release 2.7.1 - UNRELEASED Release 2.7.1 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -1425,6 +1425,7 @@ public void createSymlink(String target, String link, boolean createParent)
ParentNotDirectoryException.class, ParentNotDirectoryException.class,
NSQuotaExceededException.class, NSQuotaExceededException.class,
DSQuotaExceededException.class, DSQuotaExceededException.class,
QuotaByStorageTypeExceededException.class,
UnresolvedPathException.class, UnresolvedPathException.class,
SnapshotAccessControlException.class); SnapshotAccessControlException.class);
} finally { } finally {
@ -1467,6 +1468,7 @@ private DFSOutputStream callAppend(String src, int buffersize,
FileNotFoundException.class, FileNotFoundException.class,
SafeModeException.class, SafeModeException.class,
DSQuotaExceededException.class, DSQuotaExceededException.class,
QuotaByStorageTypeExceededException.class,
UnsupportedOperationException.class, UnsupportedOperationException.class,
UnresolvedPathException.class, UnresolvedPathException.class,
SnapshotAccessControlException.class); SnapshotAccessControlException.class);
@ -1542,6 +1544,7 @@ public boolean setReplication(String src, short replication)
FileNotFoundException.class, FileNotFoundException.class,
SafeModeException.class, SafeModeException.class,
DSQuotaExceededException.class, DSQuotaExceededException.class,
QuotaByStorageTypeExceededException.class,
UnresolvedPathException.class, UnresolvedPathException.class,
SnapshotAccessControlException.class); SnapshotAccessControlException.class);
} finally { } finally {
@ -1598,6 +1601,7 @@ public boolean rename(String src, String dst) throws IOException {
throw re.unwrapRemoteException(AccessControlException.class, throw re.unwrapRemoteException(AccessControlException.class,
NSQuotaExceededException.class, NSQuotaExceededException.class,
DSQuotaExceededException.class, DSQuotaExceededException.class,
QuotaByStorageTypeExceededException.class,
UnresolvedPathException.class, UnresolvedPathException.class,
SnapshotAccessControlException.class); SnapshotAccessControlException.class);
} finally { } finally {
@ -1635,6 +1639,7 @@ public void rename(String src, String dst, Options.Rename... options)
} catch(RemoteException re) { } catch(RemoteException re) {
throw re.unwrapRemoteException(AccessControlException.class, throw re.unwrapRemoteException(AccessControlException.class,
DSQuotaExceededException.class, DSQuotaExceededException.class,
QuotaByStorageTypeExceededException.class,
FileAlreadyExistsException.class, FileAlreadyExistsException.class,
FileNotFoundException.class, FileNotFoundException.class,
ParentNotDirectoryException.class, ParentNotDirectoryException.class,
@ -2651,6 +2656,7 @@ public boolean primitiveMkdir(String src, FsPermission absPermission,
SafeModeException.class, SafeModeException.class,
NSQuotaExceededException.class, NSQuotaExceededException.class,
DSQuotaExceededException.class, DSQuotaExceededException.class,
QuotaByStorageTypeExceededException.class,
UnresolvedPathException.class, UnresolvedPathException.class,
SnapshotAccessControlException.class); SnapshotAccessControlException.class);
} finally { } finally {
@ -2702,6 +2708,7 @@ void setQuota(String src, long namespaceQuota, long storagespaceQuota)
FileNotFoundException.class, FileNotFoundException.class,
NSQuotaExceededException.class, NSQuotaExceededException.class,
DSQuotaExceededException.class, DSQuotaExceededException.class,
QuotaByStorageTypeExceededException.class,
UnresolvedPathException.class, UnresolvedPathException.class,
SnapshotAccessControlException.class); SnapshotAccessControlException.class);
} finally { } finally {

View File

@ -44,6 +44,7 @@
import org.apache.hadoop.hdfs.protocol.HdfsFileStatus; import org.apache.hadoop.hdfs.protocol.HdfsFileStatus;
import org.apache.hadoop.hdfs.protocol.LocatedBlock; import org.apache.hadoop.hdfs.protocol.LocatedBlock;
import org.apache.hadoop.hdfs.protocol.NSQuotaExceededException; import org.apache.hadoop.hdfs.protocol.NSQuotaExceededException;
import org.apache.hadoop.hdfs.protocol.QuotaByStorageTypeExceededException;
import org.apache.hadoop.hdfs.protocol.SnapshotAccessControlException; import org.apache.hadoop.hdfs.protocol.SnapshotAccessControlException;
import org.apache.hadoop.hdfs.protocol.UnresolvedPathException; import org.apache.hadoop.hdfs.protocol.UnresolvedPathException;
import org.apache.hadoop.hdfs.protocol.datatransfer.PacketHeader; import org.apache.hadoop.hdfs.protocol.datatransfer.PacketHeader;
@ -245,6 +246,7 @@ static DFSOutputStream newStreamForCreate(DFSClient dfsClient, String src,
IOException e = re.unwrapRemoteException( IOException e = re.unwrapRemoteException(
AccessControlException.class, AccessControlException.class,
DSQuotaExceededException.class, DSQuotaExceededException.class,
QuotaByStorageTypeExceededException.class,
FileAlreadyExistsException.class, FileAlreadyExistsException.class,
FileNotFoundException.class, FileNotFoundException.class,
ParentNotDirectoryException.class, ParentNotDirectoryException.class,

View File

@ -53,6 +53,7 @@
import org.apache.hadoop.hdfs.protocol.HdfsFileStatus; import org.apache.hadoop.hdfs.protocol.HdfsFileStatus;
import org.apache.hadoop.hdfs.protocol.LocatedBlock; import org.apache.hadoop.hdfs.protocol.LocatedBlock;
import org.apache.hadoop.hdfs.protocol.NSQuotaExceededException; import org.apache.hadoop.hdfs.protocol.NSQuotaExceededException;
import org.apache.hadoop.hdfs.protocol.QuotaByStorageTypeExceededException;
import org.apache.hadoop.hdfs.protocol.QuotaExceededException; import org.apache.hadoop.hdfs.protocol.QuotaExceededException;
import org.apache.hadoop.hdfs.protocol.UnresolvedPathException; import org.apache.hadoop.hdfs.protocol.UnresolvedPathException;
import org.apache.hadoop.hdfs.protocol.datatransfer.BlockConstructionStage; import org.apache.hadoop.hdfs.protocol.datatransfer.BlockConstructionStage;
@ -1543,6 +1544,7 @@ protected LocatedBlock locateFollowingBlock(DatanodeInfo[] excludedNodes)
AccessControlException.class, AccessControlException.class,
NSQuotaExceededException.class, NSQuotaExceededException.class,
DSQuotaExceededException.class, DSQuotaExceededException.class,
QuotaByStorageTypeExceededException.class,
UnresolvedPathException.class); UnresolvedPathException.class);
if (ue != e) { if (ue != e) {
throw ue; // no need to retry these exceptions throw ue; // no need to retry these exceptions

View File

@ -96,6 +96,7 @@
import org.apache.hadoop.hdfs.protocol.LocatedBlock; import org.apache.hadoop.hdfs.protocol.LocatedBlock;
import org.apache.hadoop.hdfs.protocol.LocatedBlocks; import org.apache.hadoop.hdfs.protocol.LocatedBlocks;
import org.apache.hadoop.hdfs.protocol.NSQuotaExceededException; import org.apache.hadoop.hdfs.protocol.NSQuotaExceededException;
import org.apache.hadoop.hdfs.protocol.QuotaByStorageTypeExceededException;
import org.apache.hadoop.hdfs.protocol.QuotaExceededException; import org.apache.hadoop.hdfs.protocol.QuotaExceededException;
import org.apache.hadoop.hdfs.protocol.RecoveryInProgressException; import org.apache.hadoop.hdfs.protocol.RecoveryInProgressException;
import org.apache.hadoop.hdfs.protocol.RollingUpgradeInfo; import org.apache.hadoop.hdfs.protocol.RollingUpgradeInfo;
@ -409,6 +410,7 @@ public NameNodeRpcServer(Configuration conf, NameNode nn)
LeaseExpiredException.class, LeaseExpiredException.class,
NSQuotaExceededException.class, NSQuotaExceededException.class,
DSQuotaExceededException.class, DSQuotaExceededException.class,
QuotaByStorageTypeExceededException.class,
AclException.class, AclException.class,
FSLimitException.PathComponentTooLongException.class, FSLimitException.PathComponentTooLongException.class,
FSLimitException.MaxDirectoryItemsExceededException.class, FSLimitException.MaxDirectoryItemsExceededException.class,