slfan1989 commented on code in PR #8929:
URL: https://github.com/apache/hadoop/pull/8929#discussion_r4504731161
##########
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:
Could we add a test for a qualified `har://` path backed by ViewFS?
I reproduced `IllegalArgumentException: Wrong FS` from both builder factory
methods.
The inherited builder queries `getDefaultReplication(path)` before
`build()`, and HAR forwards the qualified path to ViewFS.
Could we translate the path before querying the backing filesystem so
`build()` can reject the write with an `IOException`?
--
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]