-
Notifications
You must be signed in to change notification settings - Fork 9k
HADOOP-19343. Add support for mkdir() and getFileStatus() #7721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: HADOOP-19343
Are you sure you want to change the base?
HADOOP-19343. Add support for mkdir() and getFileStatus() #7721
Conversation
…sts for getFileStatus(), delete() and mkdir() Some of the contract tests are disabled and will be enabled in a subsequent change
🎊 +1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @arunkumarchacko . This mostly looks good. I entered a few minor comments. Thank you.
hadoop-tools/hadoop-gcp/src/main/java/org/apache/hadoop/fs/gs/ApiErrorExtractor.java
Outdated
Show resolved
Hide resolved
import java.time.Duration; | ||
|
||
final class CreateBucketOptions { | ||
static final CreateBucketOptions DEFAULT = new Builder().build(); // TODO: Make sure the defaults |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unclear on what this TODO means.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added more details. The TODO comments will be addressed very soon.
hadoop-tools/hadoop-gcp/src/main/java/org/apache/hadoop/fs/gs/CreateBucketOptions.java
Show resolved
Hide resolved
hadoop-tools/hadoop-gcp/src/main/java/org/apache/hadoop/fs/gs/GoogleCloudStorageFileSystem.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-gcp/src/main/java/org/apache/hadoop/fs/gs/GoogleCloudStorageFileSystem.java
Outdated
Show resolved
Hide resolved
getGcsFs().mkdirs(gcsPath); | ||
} catch (java.nio.file.FileAlreadyExistsException faee) { | ||
// Need to convert to the Hadoop flavor of FileAlreadyExistsException. | ||
throw (FileAlreadyExistsException) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the downcast redundant, as we are directly instantiating FileAlreadyExistsException
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without the typecast, the code wont compile and fails with error. "unreported exception java.lang.Throwable; must be caught or declared to be thrown"
hadoop-tools/hadoop-gcp/src/test/java/org/apache/hadoop/fs/gs/contract/GoogleContract.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates, @arunkumarchacko ! +1 pending pre-submit.
🎊 +1 overall
This message was automatically generated. |
Description of PR
How was this patch tested?
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?