Skip to content

[SPARK-42202][CONNECT][TEST][FOLLOWUP] Loop around command entry in SimpleSparkConnectService#40537

Closed
juliuszsompolski wants to merge 2 commits into
apache:masterfrom
juliuszsompolski:SPARK-42202-followup
Closed

[SPARK-42202][CONNECT][TEST][FOLLOWUP] Loop around command entry in SimpleSparkConnectService#40537
juliuszsompolski wants to merge 2 commits into
apache:masterfrom
juliuszsompolski:SPARK-42202-followup

Conversation

@juliuszsompolski
Copy link
Copy Markdown
Contributor

@juliuszsompolski juliuszsompolski commented Mar 23, 2023

What changes were proposed in this pull request?

With the while loop around service startup, any ENTER hit in the SimpleSparkConnectService console made it loop around, try to start the service anew, and fail with address already in use.

Change the loop to be around the StdIn.readline() entry.

Why are the changes needed?

Better testing / development / debugging with SparkConnect

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Manual use of connector/connect/bin/spark-connect

Copy link
Copy Markdown
Contributor

@zhenlineo zhenlineo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for the fix.

@HyukjinKwon
Copy link
Copy Markdown
Member

Merged to master and branch-3.4.

HyukjinKwon pushed a commit that referenced this pull request Mar 24, 2023
…impleSparkConnectService

### What changes were proposed in this pull request?

With the while loop around service startup, any ENTER hit in the SimpleSparkConnectService console made it loop around, try to start the service anew, and fail with address already in use.

Change the loop to be around the `StdIn.readline()` entry.

### Why are the changes needed?

Better testing / development / debugging with SparkConnect

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

No.

### How was this patch tested?

Manual use of `connector/connect/bin/spark-connect`

Closes #40537 from juliuszsompolski/SPARK-42202-followup.

Authored-by: Juliusz Sompolski <julek@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit 0fde146)
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
@amaliujia
Copy link
Copy Markdown

Late LGTM!

snmvaughan pushed a commit to snmvaughan/spark that referenced this pull request Jun 20, 2023
…impleSparkConnectService

### What changes were proposed in this pull request?

With the while loop around service startup, any ENTER hit in the SimpleSparkConnectService console made it loop around, try to start the service anew, and fail with address already in use.

Change the loop to be around the `StdIn.readline()` entry.

### Why are the changes needed?

Better testing / development / debugging with SparkConnect

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

No.

### How was this patch tested?

Manual use of `connector/connect/bin/spark-connect`

Closes apache#40537 from juliuszsompolski/SPARK-42202-followup.

Authored-by: Juliusz Sompolski <julek@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit 0fde146)
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants