-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
[SPARK-43739][BUILD] Upgrade commons-io to 2.12.0 #41271
Conversation
Please don't upgrade |
Ok, Let me revert it. |
commons-io
& commons-crypto
to newest versionThere 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, LGTM.
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.
Could you check the avro failures and re-trigger the failed pipeline?
[info] *** 2 TESTS FAILED ***
[error] Failed: Total 294, Failed 2, Errors 0, Passed 292, Ignored 2
[error] Failed tests:
[error] org.apache.spark.sql.avro.AvroV1Suite
[error] org.apache.spark.sql.avro.AvroV2Suite
OK,let me check it |
@@ -1349,7 +1349,7 @@ abstract class AvroSuite | |||
spark.read.format("avro").load("*/*/*/*/*/*/*/something.avro") | |||
} | |||
|
|||
intercept[FileNotFoundException] { | |||
intercept[IOException] { |
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.
This looks like a breaking change because this is a kind of information loss.
Could you mention this to the PR description?
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.
Do you know what is the background of this change?
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.
Please do not merge it until I have investigated it thoroughly.
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.
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.
intercept[IOException] { | |
intercept[java.nio.file.NoSuchFileException] { |
?
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.
Done
|
This is done. |
@dongjoon-hyun @HyukjinKwon @LuciferYang After this PR is completed, I will submit a new PR to fix this issue. The root cause for the failure of this case is that the parent directory was not created. When FileUtils.touch is called in version 1.11.0, it just throws |
…lid path throws exception' ### What changes were proposed in this pull request? The pr aims to fix bug in AvroSuite for 'reading from invalid path throws exception'. ### Why are the changes needed? - As discussed and analyzed in [41271](#41271 (comment)) - There is a problem with this UT. Its original intention was to test if there is no file with .avro extensions in the directory, and the read should fail. However, this UT triggered the error as FileUtils.touch instead of spark.read.format("avro").load(dir.toString).The root cause for the failure of this case is that the parent directory was not created. When FileUtils.touch is called in version 1.11.0, it just throws java.io.FileNotFoundException, which covers the error. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. Closes #41289 from panbingkun/SPARK-43767. Authored-by: panbingkun <pbk1982@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
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 merged #41289 . Please rebase this PR to the master branch.
This is done. |
still need this part in description? @panbingkun |
Right, @LuciferYang . We can remove that from this PR description. |
Ok, Let me update it. |
Thank you, @panbingkun and all! Merged to master. |
…lid path throws exception' ### What changes were proposed in this pull request? The pr aims to fix bug in AvroSuite for 'reading from invalid path throws exception'. ### Why are the changes needed? - As discussed and analyzed in [41271](apache#41271 (comment)) - There is a problem with this UT. Its original intention was to test if there is no file with .avro extensions in the directory, and the read should fail. However, this UT triggered the error as FileUtils.touch instead of spark.read.format("avro").load(dir.toString).The root cause for the failure of this case is that the parent directory was not created. When FileUtils.touch is called in version 1.11.0, it just throws java.io.FileNotFoundException, which covers the error. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. Closes apache#41289 from panbingkun/SPARK-43767. Authored-by: panbingkun <pbk1982@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
### What changes were proposed in this pull request? The pr aims to upgrade common-io from 2.11.0 to 2.12.0. ### Why are the changes needed? common-io new version includes some improvement & bug fixed, eg - apache/commons-io#450 - apache/commons-io#368 - [Add PathUtils.touch(Path)](apache/commons-io@fd7c818) The error exception of the FileUtils.touch method has been changed from `java.io.FileNotFoundException` to `java.nio.file.NoSuchFileException` - common-io 2.11.0 VS 2.12.0 apache/commons-io@rel/commons-io-2.11.0...rel/commons-io-2.12.0 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. Closes apache#41271 from panbingkun/SPARK-43739. Authored-by: panbingkun <pbk1982@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
What changes were proposed in this pull request?
The pr aims to upgrade common-io from 2.11.0 to 2.12.0.
Why are the changes needed?
common-io new version includes some improvement & bug fixed, eg
java.io.FileNotFoundException
tojava.nio.file.NoSuchFileException
apache/commons-io@rel/commons-io-2.11.0...rel/commons-io-2.12.0
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass GA.