Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Example
See description of HDFS-14665 for an example of LISTSTATUS.
Analysis
WebHDFS is using a TreeMap to serialize HdfsFileStatus, while HttpFS uses a LinkedHashMap to serialize FileStatus.
Questions
Why the difference? Is this intentional?
- I looked into the Git history. It seems it's simply because WebHDFS uses TreeMap from the beginning; and HttpFS uses LinkedHashMap from the beginning. It is not only limited to LISTSTATUS, but ALL other request's JSON serialization.
Now the real question: Could/Should we replace ALL LinkedHashMap into TreeMap in HttpFS serialization in FSOperations class?
Attachments
Issue Links
- is a child of
-
HDFS-14665 HttpFS: LISTSTATUS response is missing HDFS-specific fields
- Resolved
- links to