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
* @throws IOException
* Get the list of snapshottable directories that are owned
* 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()
throws IOException {

View File

@ -696,10 +696,11 @@ DirectoryListing getListing(String src, byte[] startAfter,
boolean needLocation) throws IOException;
/**
* Get listing of all the snapshottable directories.
*
* @return Information about all the current snapshottable directory
* @throws IOException If an I/O error occurred
* Get the list of snapshottable directories that are owned
* 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.
*/
@Idempotent
@ReadOnly(isCoordinated = true)

View File

@ -6598,13 +6598,13 @@ void renameSnapshot(
logAuditEvent(success, operationName, oldSnapshotRoot,
newSnapshotRoot, null);
}
/**
* Get the list of snapshottable directories that are owned
* 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
* @return The list of all the current snapshottable directories.
* @throws IOException If an I/O error occurred.
*/
public SnapshottableDirectoryStatus[] getSnapshottableDirListing()
throws IOException {