-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-9854] [SQL] RuleExecutor.timeMap should be thread-safe #8120
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
|
/cc @marmbrus |
|
LGTM |
|
SparkQA is going to be unable to post build statuses here due to a temporary Jenkins configuration break, but we can manually check the outcome at https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/40559/. If this passes tests then I'm going to merge it immediately since I think this might cut down on a lot of the timeout-related flakiness that we've been seeing. |
|
Jenkins, retest this please. |
2 similar comments
|
Jenkins, retest this please. |
|
Jenkins, retest this please. |
|
Test build #1471 has finished for PR 8120 at commit
|
|
I'm going to merge this to master and branch-1.5. |
`RuleExecutor.timeMap` is currently a non-thread-safe mutable HashMap; this can lead to infinite loops if multiple threads are concurrently modifying the map. I believe that this is responsible for some hangs that I've observed in HiveQuerySuite. This patch addresses this by using a Guava `AtomicLongMap`. Author: Josh Rosen <joshrosen@databricks.com> Closes #8120 from JoshRosen/rule-executor-time-map-fix. (cherry picked from commit b1581ac) Signed-off-by: Josh Rosen <joshrosen@databricks.com>
|
Test build #1472 has finished for PR 8120 at commit
|
`RuleExecutor.timeMap` is currently a non-thread-safe mutable HashMap; this can lead to infinite loops if multiple threads are concurrently modifying the map. I believe that this is responsible for some hangs that I've observed in HiveQuerySuite. This patch addresses this by using a Guava `AtomicLongMap`. Author: Josh Rosen <joshrosen@databricks.com> Closes apache#8120 from JoshRosen/rule-executor-time-map-fix.
RuleExecutor.timeMapis currently a non-thread-safe mutable HashMap; this can lead to infinite loops if multiple threads are concurrently modifying the map. I believe that this is responsible for some hangs that I've observed in HiveQuerySuite.This patch addresses this by using a Guava
AtomicLongMap.