Skip to content

Conversation

@zsxwing
Copy link
Member

@zsxwing zsxwing commented Nov 13, 2018

What changes were proposed in this pull request?

As initializing lazy vals shares the same lock, a thread is trying to initialize executedPlan when isRDD is running, this thread will hang forever.

This PR just materializes executedPlan so that accessing it when toRdd is running doesn't need to wait for a lock

How was this patch tested?

Jenkins

@zsxwing
Copy link
Member Author

zsxwing commented Nov 13, 2018

cc @jose-torres

@SparkQA
Copy link

SparkQA commented Nov 13, 2018

Test build #98794 has finished for PR 23023 at commit 33b5113.

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

@jose-torres
Copy link
Contributor

LGTM

@zsxwing
Copy link
Member Author

zsxwing commented Nov 14, 2018

Thanks! Merging to master and 2.4.

asfgit pushed a commit that referenced this pull request Nov 14, 2018
…eTopicDeletionSuite

## What changes were proposed in this pull request?

As initializing lazy vals shares the same lock, a thread is trying to initialize `executedPlan` when `isRDD` is running, this thread will hang forever.

This PR just materializes `executedPlan` so that accessing it when `toRdd` is running doesn't need to wait for a lock

## How was this patch tested?

Jenkins

Closes #23023 from zsxwing/SPARK-26042.

Authored-by: Shixiong Zhu <[email protected]>
Signed-off-by: Shixiong Zhu <[email protected]>
(cherry picked from commit 4035c98)
Signed-off-by: Shixiong Zhu <[email protected]>
@asfgit asfgit closed this in 4035c98 Nov 14, 2018
@zsxwing zsxwing deleted the SPARK-26042 branch November 14, 2018 18:25
jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
…eTopicDeletionSuite

## What changes were proposed in this pull request?

As initializing lazy vals shares the same lock, a thread is trying to initialize `executedPlan` when `isRDD` is running, this thread will hang forever.

This PR just materializes `executedPlan` so that accessing it when `toRdd` is running doesn't need to wait for a lock

## How was this patch tested?

Jenkins

Closes apache#23023 from zsxwing/SPARK-26042.

Authored-by: Shixiong Zhu <[email protected]>
Signed-off-by: Shixiong Zhu <[email protected]>
kai-chi pushed a commit to kai-chi/spark that referenced this pull request Jul 23, 2019
…eTopicDeletionSuite

## What changes were proposed in this pull request?

As initializing lazy vals shares the same lock, a thread is trying to initialize `executedPlan` when `isRDD` is running, this thread will hang forever.

This PR just materializes `executedPlan` so that accessing it when `toRdd` is running doesn't need to wait for a lock

## How was this patch tested?

Jenkins

Closes apache#23023 from zsxwing/SPARK-26042.

Authored-by: Shixiong Zhu <[email protected]>
Signed-off-by: Shixiong Zhu <[email protected]>
(cherry picked from commit 4035c98)
Signed-off-by: Shixiong Zhu <[email protected]>
kai-chi pushed a commit to kai-chi/spark that referenced this pull request Aug 1, 2019
…eTopicDeletionSuite

## What changes were proposed in this pull request?

As initializing lazy vals shares the same lock, a thread is trying to initialize `executedPlan` when `isRDD` is running, this thread will hang forever.

This PR just materializes `executedPlan` so that accessing it when `toRdd` is running doesn't need to wait for a lock

## How was this patch tested?

Jenkins

Closes apache#23023 from zsxwing/SPARK-26042.

Authored-by: Shixiong Zhu <[email protected]>
Signed-off-by: Shixiong Zhu <[email protected]>
(cherry picked from commit 4035c98)
Signed-off-by: Shixiong Zhu <[email protected]>
zzcclp added a commit to zzcclp/spark that referenced this pull request Sep 20, 2019
…SourceTopicDeletionSuite apache#23023

As initializing lazy vals shares the same lock, a thread is trying to initialize executedPlan when isRDD is running, this thread will hang forever.

This PR just materializes executedPlan so that accessing it when toRdd is running doesn't need to wait for a lock
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