Skip to content

Commit 9458f15

Browse files
committed
Remove unthrown exception
Change-Id: I816a25b208bcb8c9605c68a1dd7deaee34e221d6
1 parent d9f4535 commit 9458f15

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAttrOp.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ static boolean unprotectedSetOwner(
300300

301301
static boolean setTimes(
302302
FSDirectory fsd, INodesInPath iip, long mtime, long atime, boolean force)
303-
throws QuotaExceededException, FileNotFoundException {
303+
throws FileNotFoundException {
304304
fsd.writeLock();
305305
try {
306306
return unprotectedSetTimes(fsd, iip, mtime, atime, force);
@@ -492,7 +492,7 @@ private static void setDirStoragePolicy(
492492

493493
static boolean unprotectedSetTimes(
494494
FSDirectory fsd, INodesInPath iip, long mtime, long atime, boolean force)
495-
throws QuotaExceededException, FileNotFoundException {
495+
throws FileNotFoundException {
496496
assert fsd.hasWriteLock();
497497
boolean status = false;
498498
INode inode = iip.getLastINode();

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFSDirAttrOp.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class TestFSDirAttrOp {
4343

4444
private boolean unprotectedSetTimes(long atime, long atime0, long precision,
4545
long mtime, boolean force)
46-
throws QuotaExceededException, FileNotFoundException {
46+
throws FileNotFoundException {
4747
FSNamesystem fsn = Mockito.mock(FSNamesystem.class);
4848
SnapshotManager ssMgr = Mockito.mock(SnapshotManager.class);
4949
FSDirectory fsd = Mockito.mock(FSDirectory.class);
@@ -137,7 +137,7 @@ public void testUnprotectedSetTimes() throws Exception {
137137

138138
@Test(expected = FileNotFoundException.class)
139139
public void testUnprotectedSetTimesFNFE()
140-
throws QuotaExceededException, FileNotFoundException {
140+
throws FileNotFoundException {
141141
FSDirectory fsd = Mockito.mock(FSDirectory.class);
142142
INodesInPath iip = Mockito.mock(INodesInPath.class);
143143

0 commit comments

Comments
 (0)