[Extra] swift-client list container command makes unnecessary REST calls
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sahara |
Confirmed
|
High
|
Unassigned |
Bug Description
Hi,
The "listContainer()" equivalent call in the sahara swift-client makes unnecessary REST calls for each object found in the container which makes it very slow the more files there are in the container. Possible fix in the SwiftNativeFile
diff --git a/hadoop-
index c2d4f49..b9b08a7 100644
--- a/hadoop-
+++ b/hadoop-
@@ -556,7 +556,9 @@ public class SwiftNativeFile
if (!name.
final Path filePath = getCorrectSwift
- files.add(
+ files.add(
+ new SwiftFileStatus
+ status.
} else {
if (prevObjName.
Best regards
Marc
description: | updated |
summary: |
- Sahra-extra swift-client list container command (e.g. hdfs dfs -ls) - makes unnecessary REST calls + [Extra] swift-client list container command (e.g. hdfs dfs -ls) makes + unnecessary REST calls |
summary: |
- [Extra] swift-client list container command (e.g. hdfs dfs -ls) makes - unnecessary REST calls + [Extra] swift-client list container command makes unnecessary REST calls |
Changed in sahara: | |
importance: | Undecided → High |
milestone: | none → newton-1 |
status: | New → Confirmed |
Changed in sahara: | |
milestone: | newton-1 → newton-2 |
Changed in sahara: | |
milestone: | newton-2 → none |
tags: | added: hadoop.swift.lib |
Changed in sahara: | |
milestone: | none → next |
Changed in sahara: | |
milestone: | next → none |
tags: | added: sahara-extra |
I am not sure if pseudo directories should be handled separately. I'am working on that as well.