Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

switching back to the (broken) location code

  • Loading branch information...
commit 667c39a3754a8bfeeb883dd9be497cac6e4ab852 1 parent 62d09bb
Steve Loughran steveloughran authored
5 swift-file-system/src/main/java/org/apache/hadoop/fs/swift/snative/SwiftNativeFileSystem.java
@@ -192,11 +192,10 @@ public boolean isDirectory(Path f) throws IOException {
192 192 public BlockLocation[] getFileBlockLocations(FileStatus file,
193 193 long start,
194 194 long len) throws IOException {
195   - return super.getFileBlockLocations(file, start, len);
  195 +// return super.getFileBlockLocations(file, start, len);
196 196 // Check if requested file in Swift is more than 5Gb. In this case
197 197 // each block has its own location -which may be determinable
198 198 // from the Swift client API, depending on the remote server
199   -/* disabled until this degrades properly to non-block aware filesystems
200 199 final FileStatus[] listOfFileBlocks = store.listSubPaths(file.getPath(),
201 200 false,
202 201 true);
@@ -223,7 +222,7 @@ public boolean isDirectory(Path f) throws IOException {
223 222 }
224 223 return new BlockLocation[]{
225 224 new BlockLocation(names, hosts, 0, file.getLen())
226   - };*/
  225 + };
227 226 }
228 227
229 228 @Override

0 comments on commit 667c39a

Please sign in to comment.
Something went wrong with that request. Please try again.