Repository: ignite Updated Branches: refs/heads/ignite-1926 ba0088e3b -> 4bfa08d02
IGNITE-3644 IGFS: Local secondary: Implemented exists() operation. This closes #935. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/4bfa08d0 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/4bfa08d0 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/4bfa08d0 Branch: refs/heads/ignite-1926 Commit: 4bfa08d0290ccda6a1b638fef21ee551afe709f9 Parents: ba0088e Author: tledkov-gridgain <[email protected]> Authored: Wed Aug 10 10:14:37 2016 +0300 Committer: vozerov-gridgain <[email protected]> Committed: Wed Aug 10 10:14:37 2016 +0300 ---------------------------------------------------------------------- .../ignite/hadoop/fs/LocalIgfsSecondaryFileSystem.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/4bfa08d0/modules/hadoop/src/main/java/org/apache/ignite/hadoop/fs/LocalIgfsSecondaryFileSystem.java ---------------------------------------------------------------------- diff --git a/modules/hadoop/src/main/java/org/apache/ignite/hadoop/fs/LocalIgfsSecondaryFileSystem.java b/modules/hadoop/src/main/java/org/apache/ignite/hadoop/fs/LocalIgfsSecondaryFileSystem.java index bebaab4..d9c162c 100644 --- a/modules/hadoop/src/main/java/org/apache/ignite/hadoop/fs/LocalIgfsSecondaryFileSystem.java +++ b/modules/hadoop/src/main/java/org/apache/ignite/hadoop/fs/LocalIgfsSecondaryFileSystem.java @@ -170,13 +170,7 @@ public class LocalIgfsSecondaryFileSystem implements IgfsSecondaryFileSystem, Li /** {@inheritDoc} */ @Override public boolean exists(IgfsPath path) { - try { - // TODO: IGNITE-3644. - return fileSystemForUser().exists(convert(path)); - } - catch (IOException e) { - throw handleSecondaryFsError(e, "Failed to check file existence [path=" + path + "]"); - } + return fileForPath(path).exists(); } /** {@inheritDoc} */
