-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-17745. Wrap IOException with InterruptedException cause properly #3076
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: trunk
Are you sure you want to change the base?
Conversation
Hi @steveloughran, what tests should I run in order to make this change? |
aah, you need to look at the Testing Azure doc. I can see the code here doesn't directly go near the store, but as its called from abfs you are going to have to do a test run. Sorry. |
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.
Production code looks good, one minor change. Test-wise, I'd prefer tests in assertJ as they'll report on exception class mismatches better.
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/IOUtils.java
Outdated
Show resolved
Hide resolved
...-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestIOUtilsWrapExceptionSuite.java
Outdated
Show resolved
Hide resolved
...-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestIOUtilsWrapExceptionSuite.java
Outdated
Show resolved
Hide resolved
...-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestIOUtilsWrapExceptionSuite.java
Outdated
Show resolved
Hide resolved
🎊 +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.
LGTM. Some minor changes in the tests, but nothing much
...-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestIOUtilsWrapExceptionSuite.java
Outdated
Show resolved
Hide resolved
...-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestIOUtilsWrapExceptionSuite.java
Outdated
Show resolved
Hide resolved
...-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestIOUtilsWrapExceptionSuite.java
Outdated
Show resolved
Hide resolved
all the abfs tests in hadoop-azure. Ideally with as many auth options as you can. At the very least:
|
🎊 +1 overall
This message was automatically generated. |
changes look good. This leaves checkstyle complaints to deal with. Indentation and some lines need to be split. +1 pending these changes
|
@eric-maynard any chance to deal with the checkstyle complaints yet? |
The Azure client sometimes throws an IOException with an InterruptedException cause which can be converted to an InterruptedIOException. This is important for downstream consumers that rely on an InterruptedIOException to gracefully close.