Skip to content

Conversation

@xiongbo-sjtu
Copy link

@xiongbo-sjtu xiongbo-sjtu commented Sep 29, 2023

Backport of #43021 to branch 3.3

What changes were proposed in this pull request?

Fix a subtle thread-safety issue with CoarseGrainedExecutorBackend where an executor process randomly gets stuck.

Why are the changes needed?

For each executor, the single-threaded dispatcher can run into an "infinite loop" (as explained in the SPARK-45227). Once an executor process runs into a state, it'd stop launching tasks from the driver or reporting task status back.

Does this PR introduce any user-facing change?

No

How was this patch tested?

$ build/mvn package -DskipTests -pl core
$ build/mvn -Dtest=none -DwildcardSuites=org.apache.spark.executor.CoarseGrainedExecutorBackendSuite test

Was this patch authored or co-authored using generative AI tooling?

No

…ere an executor process randomly gets stuck
@xiongbo-sjtu
Copy link
Author

@mridulm Please help merge this patch to branch-3.3

mridulm pushed a commit that referenced this pull request Sep 30, 2023
…edExecutorBackend

Backport of #43021 to branch 3.3

### What changes were proposed in this pull request?
Fix a subtle thread-safety issue with CoarseGrainedExecutorBackend where an executor process randomly gets stuck.

### Why are the changes needed?
For each executor, the single-threaded dispatcher can run into an "infinite loop" (as explained in the SPARK-45227). Once an executor process runs into a state, it'd stop launching tasks from the driver or reporting task status back.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
```
$ build/mvn package -DskipTests -pl core
$ build/mvn -Dtest=none -DwildcardSuites=org.apache.spark.executor.CoarseGrainedExecutorBackendSuite test
```

### Was this patch authored or co-authored using generative AI tooling?
No

Closes #43176 from xiongbo-sjtu/branch-3.3.

Authored-by: Bo Xiong <[email protected]>
Signed-off-by: Mridul Muralidharan <mridul<at>gmail.com>
@mridulm
Copy link
Contributor

mridulm commented Sep 30, 2023

Merged to 3.3, thanks for working on this @xiongbo-sjtu !

@mridulm mridulm closed this Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants