-
Notifications
You must be signed in to change notification settings - Fork 30
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
Do not merge throwable to itself #205
Conversation
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.
Cool 👍
def mkPool(name: String) = { | ||
val parallelism = 1 | ||
val handler: Thread.UncaughtExceptionHandler = null | ||
val asyncMode = false | ||
new ForkJoinPool(parallelism, mkFactory(name), handler, asyncMode) | ||
} |
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 this because we can't use named arguments for Java-defined methods? 🤔
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.
Yes, I believe scalac still complains, although I didn't try again here. Fool me once, as the saying goes.
I actually did this because my first version of the test was this plus throwing on run
, but that fails outright and hangs!
@@ -48,4 +53,43 @@ class TaskTest { | |||
val r = c.filter(_ != 0).map(_ + 1) | |||
assertSame(myTs, r.tasksupport) | |||
} | |||
|
|||
// was: Wrong exception: expected scala.collection.parallel.TaskTest$SpecialControl$1 but was java.lang.IllegalArgumentException |
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 don't get this comment
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.
Before the fix, the assertThrows
fails with this message.
Thank you all! |
Shall I roll a release, or should we wait and see if any other fixes accumulate? |
### What changes were proposed in this pull request? This pr aims to upgrade `scala-parallel-collections` from 1.0.4 to 1.2.0 ### Why are the changes needed? The new version includes a bug fix for exception merging: - scala/scala-parallel-collections#205 The full release notes as follows: - https://github.com/scala/scala-parallel-collections/releases/tag/v1.1.0 - https://github.com/scala/scala-parallel-collections/releases/tag/v1.2.0 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Actions ### Was this patch authored or co-authored using generative AI tooling? No Closes #49548 from LuciferYang/SPARK-50871. Authored-by: yangjie01 <yangjie01@baidu.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
### What changes were proposed in this pull request? This pr aims to upgrade `scala-parallel-collections` from 1.0.4 to 1.2.0 ### Why are the changes needed? The new version includes a bug fix for exception merging: - scala/scala-parallel-collections#205 The full release notes as follows: - https://github.com/scala/scala-parallel-collections/releases/tag/v1.1.0 - https://github.com/scala/scala-parallel-collections/releases/tag/v1.2.0 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Actions ### Was this patch authored or co-authored using generative AI tooling? No Closes #49548 from LuciferYang/SPARK-50871. Authored-by: yangjie01 <yangjie01@baidu.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 4e47023) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
See scala/bug#10276
Original issue was OOM, thanks @joroKr21 for suggestion to throw a cached value. Fix by @oxbowlakes