Skip to content

Commit 8588c55

Browse files
RBF Module: Fixed any issues where comments and actual throws did not match.
1 parent 119e426 commit 8588c55

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/store/StateStoreService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public StateStoreService() {
138138
* Initialize the State Store and the connection to the back-end.
139139
*
140140
* @param config Configuration for the State Store.
141-
* @throws IOException Cannot create driver for the State Store.
141+
* @throws Exception Cannot create driver for the State Store.
142142
*/
143143
@Override
144144
protected void serviceInit(Configuration config) throws Exception {
@@ -239,7 +239,6 @@ protected void serviceStop() throws Exception {
239239
*
240240
* @param <T> Type of the records stored.
241241
* @param clazz Class of the record store to track.
242-
* @return New record store.
243242
* @throws ReflectiveOperationException
244243
*/
245244
private <T extends RecordStore<?>> void addRecordStore(

hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/store/impl/MountTableStoreImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public MountTableStoreImpl(StateStoreDriver driver) {
7070
*
7171
* @param src mount entry being accessed
7272
* @param action type of action being performed on the mount entry
73-
* @throws AccessControlException if mount table cannot be accessed
73+
* @throws IOException if mount table cannot be accessed
7474
*/
7575
private void checkMountTableEntryPermission(String src, FsAction action)
7676
throws IOException {
@@ -90,7 +90,7 @@ private void checkMountTableEntryPermission(String src, FsAction action)
9090
* Check parent path permission recursively. It needs WRITE permission
9191
* of the nearest parent entry and other EXECUTE permission.
9292
* @param src mount entry being checked
93-
* @throws AccessControlException if mount table cannot be accessed
93+
* @throws IOException if mount table cannot be accessed
9494
*/
9595
private void checkMountTablePermission(final String src) throws IOException {
9696
String parent = src.substring(0, src.lastIndexOf(Path.SEPARATOR));

0 commit comments

Comments
 (0)