-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-17934 ABFS: Make sure the AbfsHttpOperation is non-null before using it #3477
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
Conversation
…ng it It's possible that, after retries, we will have a null AbfsHttpOperation inside of the AbfsRestOperation. AbfsClient should be aware of this and make sure that it doesn't just assume that there's a non-null HttpOperation (e.g. try to get the HTTP status code).
9bae284 to
e60faad
Compare
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.
minor javadoc change.
now: have you run the full abfs test suite? As you know you have to...
...ols/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsRestOperation.java
Outdated
Show resolved
Hide resolved
Nope, I haven't yet and yes I know I need to run them. I'll be working on figuring that out today. Thanks for the pre-review Steve! |
|
Well, I got some stuff to run. I made my azure-auth-keys.xml file and ran it against a storage account in East US via Is this the kind of output we expect to see? |
|
@joshelser -that's a lovely test run result. Happy. |
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.
got a q. about assert(), otherwise LGTM
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsClient.java
Outdated
Show resolved
Hide resolved
Re-ran against East US. One, what looks like a, flakey test: Seems to fail now and again. |
|
💔 -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.
+1 from me. Yes, some tests are a bit brittle over timing. the fact you discovered that reassures us that you are running the tests though
|
Thanks so much, Steve! |
…e using it (#3477) Contributed by: Josh Elser Change-Id: I24a2e0322d8cae2d72d65c7f3d8a74580a418317
Description of PR
It's possible that, after retries, we will have a null AbfsHttpOperation
inside of the AbfsRestOperation. AbfsClient should be aware of this and
make sure that it doesn't just assume that there's a non-null
HttpOperation (e.g. try to get the HTTP status code).
How was this patch tested?
Just existing unit tests at this point. Haven't looked to see if I can mock a realistic new test case. Have not tried to run ABFS integration tests yet.
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?