LuciferYang commented on code in PR #8929:
URL: https://github.com/apache/hadoop/pull/8929#discussion_r4572866693


##########
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HarFileSystem.java:
##########
@@ -1301,14 +1301,4 @@ public short getDefaultReplication() {
   public short getDefaultReplication(Path f) {
     return fs.getDefaultReplication(f);

Review Comment:
   Fixed. `getDefaultReplication(Path)` and `getDefaultBlockSize(Path)` now 
pass the path inside the archive to the underlying file system, so creating the 
builders on a `har://` path over ViewFS no longer fails with `Wrong FS` and 
`build()` fails with the HAR `IOException`. Added 
`testNegativeHarFsBuildersWithQualifiedHarPath`, which runs the builders over 
local FS and over ViewFS.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to