Skip to content

Conversation

@HyukjinKwon
Copy link
Member

@HyukjinKwon HyukjinKwon commented Aug 3, 2019

What changes were proposed in this pull request?

This PR picks up #25315 back after removing Popen.wait usage which exists in Python 3 only. I saw the last test results wrongly and thought it was passed.

Fix flaky test DaemonTests.do_termination_test which fail on Python 3.7. I add a sleep after the test connection to daemon.

How was this patch tested?

Run test

python/run-tests --python-executables=python3.7 --testname "pyspark.tests.test_daemon DaemonTests"

Before
Fail on test "test_termination_sigterm". And we can see daemon process do not exit.
After
Test passed

… which fail on Python 3.7

Fix flaky test DaemonTests.do_termination_test which fail on Python 3.7. I add a sleep after the test connection to daemon.

Run test
```
python/run-tests --python-executables=python3.7 --testname "pyspark.tests.test_daemon DaemonTests"
```
**Before**
Fail on test "test_termination_sigterm". And we can see daemon process do not exit.
**After**
Test passed

Closes apache#25315 from WeichenXu123/fix_py37_daemon.

Authored-by: WeichenXu <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
@SparkQA
Copy link

SparkQA commented Aug 3, 2019

Test build #108590 has finished for PR 25343 at commit 5b1bd55.

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

@HyukjinKwon
Copy link
Member Author

cc @dongjoon-hyun

@HyukjinKwon
Copy link
Member Author

Merged to master, branch-2.4 and branch-2.3.

HyukjinKwon pushed a commit that referenced this pull request Aug 3, 2019
…which fail on Python 3.7

This PR picks up #25315 back after removing `Popen.wait` usage which exists in Python 3 only. I saw the last test results wrongly and thought it was passed.

Fix flaky test DaemonTests.do_termination_test which fail on Python 3.7. I add a sleep after the test connection to daemon.

Run test
```
python/run-tests --python-executables=python3.7 --testname "pyspark.tests.test_daemon DaemonTests"
```
**Before**
Fail on test "test_termination_sigterm". And we can see daemon process do not exit.
**After**
Test passed

Closes #25343 from HyukjinKwon/SPARK-28582.

Authored-by: WeichenXu <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
(cherry picked from commit b3394db)
Signed-off-by: HyukjinKwon <[email protected]>
HyukjinKwon pushed a commit that referenced this pull request Aug 3, 2019
…which fail on Python 3.7

This PR picks up #25315 back after removing `Popen.wait` usage which exists in Python 3 only. I saw the last test results wrongly and thought it was passed.

Fix flaky test DaemonTests.do_termination_test which fail on Python 3.7. I add a sleep after the test connection to daemon.

Run test
```
python/run-tests --python-executables=python3.7 --testname "pyspark.tests.test_daemon DaemonTests"
```
**Before**
Fail on test "test_termination_sigterm". And we can see daemon process do not exit.
**After**
Test passed

Closes #25343 from HyukjinKwon/SPARK-28582.

Authored-by: WeichenXu <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
(cherry picked from commit b3394db)
Signed-off-by: HyukjinKwon <[email protected]>
@dongjoon-hyun
Copy link
Member

Thank you for quick fix~

@dongjoon-hyun dongjoon-hyun deleted the SPARK-28582 branch August 3, 2019 01:43
@HyukjinKwon
Copy link
Member Author

FYI, I am manually running the test against branch-2.4 in my local to double check since 2.4.x release is coming. Sorry for this trouble, @dongjoon-hyun.

@dongjoon-hyun
Copy link
Member

Thank you so much for your help for release 2.4.x.

rluta pushed a commit to rluta/spark that referenced this pull request Sep 17, 2019
…which fail on Python 3.7

This PR picks up apache#25315 back after removing `Popen.wait` usage which exists in Python 3 only. I saw the last test results wrongly and thought it was passed.

Fix flaky test DaemonTests.do_termination_test which fail on Python 3.7. I add a sleep after the test connection to daemon.

Run test
```
python/run-tests --python-executables=python3.7 --testname "pyspark.tests.test_daemon DaemonTests"
```
**Before**
Fail on test "test_termination_sigterm". And we can see daemon process do not exit.
**After**
Test passed

Closes apache#25343 from HyukjinKwon/SPARK-28582.

Authored-by: WeichenXu <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
(cherry picked from commit b3394db)
Signed-off-by: HyukjinKwon <[email protected]>
kai-chi pushed a commit to kai-chi/spark that referenced this pull request Sep 26, 2019
…which fail on Python 3.7

This PR picks up apache#25315 back after removing `Popen.wait` usage which exists in Python 3 only. I saw the last test results wrongly and thought it was passed.

Fix flaky test DaemonTests.do_termination_test which fail on Python 3.7. I add a sleep after the test connection to daemon.

Run test
```
python/run-tests --python-executables=python3.7 --testname "pyspark.tests.test_daemon DaemonTests"
```
**Before**
Fail on test "test_termination_sigterm". And we can see daemon process do not exit.
**After**
Test passed

Closes apache#25343 from HyukjinKwon/SPARK-28582.

Authored-by: WeichenXu <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
(cherry picked from commit b3394db)
Signed-off-by: HyukjinKwon <[email protected]>
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