HDFS-14228. Incorrect getSnapshottableDirListing() javadoc. Contributed by Dinesh Chitlangia.

Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
This commit is contained in:
Dinesh Chitlangia 2019-01-25 07:34:48 -08:00 committed by Wei-Chiu Chuang
parent 84bb9808a2
commit 45caeee6cf
3 changed files with 13 additions and 9 deletions

View File

@ -1976,8 +1976,11 @@ public Void next(final FileSystem fs, final Path p)
} }
/** /**
* @return All the snapshottable directories * Get the list of snapshottable directories that are owned
* @throws IOException * by the current user. Return all the snapshottable directories if the
* current user is a super user.
* @return The list of all the current snapshottable directories.
* @throws IOException If an I/O error occurred.
*/ */
public SnapshottableDirectoryStatus[] getSnapshottableDirListing() public SnapshottableDirectoryStatus[] getSnapshottableDirListing()
throws IOException { throws IOException {

View File

@ -696,10 +696,11 @@ DirectoryListing getListing(String src, byte[] startAfter,
boolean needLocation) throws IOException; boolean needLocation) throws IOException;
/** /**
* Get listing of all the snapshottable directories. * Get the list of snapshottable directories that are owned
* * by the current user. Return all the snapshottable directories if the
* @return Information about all the current snapshottable directory * current user is a super user.
* @throws IOException If an I/O error occurred * @return The list of all the current snapshottable directories.
* @throws IOException If an I/O error occurred.
*/ */
@Idempotent @Idempotent
@ReadOnly(isCoordinated = true) @ReadOnly(isCoordinated = true)

View File

@ -6603,8 +6603,8 @@ void renameSnapshot(
* Get the list of snapshottable directories that are owned * Get the list of snapshottable directories that are owned
* by the current user. Return all the snapshottable directories if the * by the current user. Return all the snapshottable directories if the
* current user is a super user. * current user is a super user.
* @return The list of all the current snapshottable directories * @return The list of all the current snapshottable directories.
* @throws IOException * @throws IOException If an I/O error occurred.
*/ */
public SnapshottableDirectoryStatus[] getSnapshottableDirListing() public SnapshottableDirectoryStatus[] getSnapshottableDirListing()
throws IOException { throws IOException {