sahara-extra/hadoop-swiftfs/src/test
Kazuki OIKAWA e464caa3ef Hiding a pseudo-directory that contains DLO segments
In SwiftNativeFileSystem implementation,
writes DLO manifest and segments to same location.

    largefile         <- manifest file
    largefile/000001  <- 1st segment
    largefile/000002  <- 2nd segment

And querying Swift to list objects (delimiter=/),
returns two object that is same name (sorted by name).

    largefile    <- manifest file
    largefile/   <- pseudo-directory

listStatus method returns two objects at above.
But FileSystem spec cannot exists file and directory in same name.

This patch modified listStatus's behavior to fix that problems
1. Ignores pseudo-directory entry If same named objects found
2. When called listStatus with manifest file path, returns a manifest file
   instead of the segments. (currently, returns list of segments)

Change-Id: Ic8835ba170c52ebac405315b44d59b4935909d51
Closes-Bug: 1436278
2015-03-26 19:54:51 +09:00
..
java/org/apache/hadoop/fs/swift Hiding a pseudo-directory that contains DLO segments 2015-03-26 19:54:51 +09:00
resources Sources for hadoop-patch 2013-08-23 16:32:14 +04:00