VicoWu commented on issue #509: HBASE-22877 WebHDFS based export snapshot will fail if hfile is in archive directory URL: https://github.com/apache/hbase/pull/509#issuecomment-523253458 @jojochuang Thanks for your experiments; From my understanding, when you use `curl` with `op=OPEN`, this rest request definitely will send to the httpfs server and get a `FileNotFound` exception;This is just as expect; But when it comes to the httpfs java client `WebHdfsFileSystem`, things is different; I have debug and dive into to implements of `WebHdfsFileSystem` and I found: when we call `WebHdfsFileSystem.open()`, in fact, it does nothing except for preparing an `InputStream` to the remote httpfs server, but it didn't establish any connection to the `httpfs`. That's why we cannot get an `FileNotFound` exception when calling `WebHdfsFileSystem.open()` on a non-exist files;
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
