HDFS-8247. TestDiskspaceQuotaUpdate#testAppendOverTypeQuota is failing. Contributed by Xiaoyu Yao.

This commit is contained in:
cnauroth 2015-04-25 11:37:27 -07:00
parent f83c55a6be
commit a00e001a1a
2 changed files with 6 additions and 2 deletions

View File

@ -566,6 +566,9 @@ Release 2.8.0 - UNRELEASED
HDFS-8211. DataNode UUID is always null in the JMX counter. (Anu Engineer HDFS-8211. DataNode UUID is always null in the JMX counter. (Anu Engineer
via Arpit Agarwal) via Arpit Agarwal)
HDFS-8247. TestDiskspaceQuotaUpdate#testAppendOverTypeQuota is failing.
(Xiaoyu Yao via cnauroth)
Release 2.7.1 - UNRELEASED Release 2.7.1 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -35,6 +35,7 @@
import org.apache.hadoop.hdfs.client.HdfsDataOutputStream; import org.apache.hadoop.hdfs.client.HdfsDataOutputStream;
import org.apache.hadoop.hdfs.protocol.DSQuotaExceededException; import org.apache.hadoop.hdfs.protocol.DSQuotaExceededException;
import org.apache.hadoop.hdfs.protocol.HdfsConstants; import org.apache.hadoop.hdfs.protocol.HdfsConstants;
import org.apache.hadoop.hdfs.protocol.QuotaByStorageTypeExceededException;
import org.apache.hadoop.ipc.RemoteException; import org.apache.hadoop.ipc.RemoteException;
import org.junit.After; import org.junit.After;
import org.junit.Assert; import org.junit.Assert;
@ -250,8 +251,8 @@ public void testAppendOverTypeQuota() throws Exception {
try { try {
DFSTestUtil.appendFile(dfs, file, BLOCKSIZE); DFSTestUtil.appendFile(dfs, file, BLOCKSIZE);
Assert.fail("append didn't fail"); Assert.fail("append didn't fail");
} catch (RemoteException e) { } catch (QuotaByStorageTypeExceededException e) {
assertTrue(e.getClassName().contains("QuotaByStorageTypeExceededException")); //ignore
} }
// check that the file exists, isn't UC, and has no dangling lease // check that the file exists, isn't UC, and has no dangling lease