steveloughran commented on a change in pull request #2063:
URL: https://github.com/apache/hadoop/pull/2063#discussion_r437295343
##########
File path:
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java
##########
@@ -100,6 +101,7 @@ public File pathToFile(Path path) {
public void initialize(URI uri, Configuration conf) throws IOException {
super.initialize(uri, conf);
setConf(conf);
+ defaultBlockSize = getDefaultBlockSize(new Path("."));
Review comment:
must be absolute fs uri
##########
File path:
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java
##########
@@ -518,7 +520,12 @@ public boolean delete(Path p, boolean recursive) throws
IOException {
}
return new FileStatus[] {
new DeprecatedRawLocalFileStatus(localf,
- getDefaultBlockSize(f), this) };
+ defaultBlockSize, this) };
+ }
+
+ @Override
+ public boolean exists(Path f) throws IOException {
+ return pathToFile(f).exists();
Review comment:
is this a new method, or just an accidental patch quirk
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]