Skip to content

Conversation

@maropu
Copy link
Member

@maropu maropu commented May 29, 2016

What changes were proposed in this pull request?

A local variable in NumberConverter is wrongly shared between threads.
This pr fixes the race condition.

How was this patch tested?

Manually checked.

@SparkQA
Copy link

SparkQA commented May 29, 2016

Test build #59584 has finished for PR 13391 at commit 374d679.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented May 29, 2016

CC @tarekauel It is certainly a problem if this code is called from several threads in one JVM. It's possible it was written this way because for whatever reason this will never happen. However that doesn't strike me as likely. LGTM

@maropu
Copy link
Member Author

maropu commented May 30, 2016

@rxin @tarekauel Seems this bug is a kind of critical issues, so we need to fix for the v2.0 release, thought?

@rxin
Copy link
Contributor

rxin commented May 30, 2016

Yes this is definitely a problem worth fixing. We should probably also backport this into 1.6.

cc @davies @sameeragarwal

@asfgit asfgit closed this in 95db8a4 May 31, 2016
asfgit pushed a commit that referenced this pull request May 31, 2016
## What changes were proposed in this pull request?
A local variable in NumberConverter is wrongly shared between threads.
This pr fixes the race condition.

## How was this patch tested?
Manually checked.

Author: Takeshi YAMAMURO <[email protected]>

Closes #13391 from maropu/SPARK-15528.

(cherry picked from commit 95db8a4)
Signed-off-by: Sean Owen <[email protected]>
@srowen
Copy link
Member

srowen commented May 31, 2016

Merged to master/2.0/1.6

asfgit pushed a commit that referenced this pull request May 31, 2016
## What changes were proposed in this pull request?
A local variable in NumberConverter is wrongly shared between threads.
This pr fixes the race condition.

## How was this patch tested?
Manually checked.

Author: Takeshi YAMAMURO <[email protected]>

Closes #13391 from maropu/SPARK-15528.

(cherry picked from commit 95db8a4)
Signed-off-by: Sean Owen <[email protected]>
@maropu
Copy link
Member Author

maropu commented May 31, 2016

thanks!

zzcclp pushed a commit to zzcclp/spark that referenced this pull request May 31, 2016
## What changes were proposed in this pull request?
A local variable in NumberConverter is wrongly shared between threads.
This pr fixes the race condition.

## How was this patch tested?
Manually checked.

Author: Takeshi YAMAMURO <[email protected]>

Closes apache#13391 from maropu/SPARK-15528.

(cherry picked from commit 95db8a4)
Signed-off-by: Sean Owen <[email protected]>
(cherry picked from commit ea84b33)
@maropu maropu deleted the SPARK-15528 branch July 5, 2017 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants