-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-33143][PYTHON] Add configurable timeout to python server and client #30389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
09b1235
[SPARK-33143][PYTHON] Add configurable timeout to python server and c…
gaborgsomogyi 17d357b
compile fix
gaborgsomogyi 424be64
PythonRDDSuite fix
gaborgsomogyi d9feed8
Some cleanup
gaborgsomogyi 6e8e194
Additional trace
gaborgsomogyi f504af3
Partial review fix
gaborgsomogyi 1595581
Driver side coverage
gaborgsomogyi a67acd7
Style fix
gaborgsomogyi 0f9e587
Update core/src/test/scala/org/apache/spark/api/python/PythonRDDSuite…
HyukjinKwon cd2d595
Update core/src/test/scala/org/apache/spark/api/python/PythonRDDSuite…
HyukjinKwon d9f0a1b
Update core/src/main/scala/org/apache/spark/security/SocketAuthServer…
HyukjinKwon 2913fb1
Update core/src/test/scala/org/apache/spark/api/python/PythonRDDSuite…
HyukjinKwon ef137b6
Update core/src/test/scala/org/apache/spark/api/python/PythonRDDSuite…
HyukjinKwon 363f3bb
Fix test in PythonRDDSuite
HyukjinKwon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Partial review fix
- Loading branch information
commit f504af38ac0e855c2a97e8341ea53ea971cfe5b5
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,7 @@ import scala.util.Try | |
|
|
||
| import org.apache.spark.SparkEnv | ||
| import org.apache.spark.internal.Logging | ||
| import org.apache.spark.internal.config.Python.PYTHON_GATEWAY_CONNECT_TIMEOUT | ||
| import org.apache.spark.internal.config.Python.PYTHON_AUTH_SOCKET_TIMEOUT | ||
| import org.apache.spark.network.util.JavaUtils | ||
| import org.apache.spark.util.{ThreadUtils, Utils} | ||
|
|
||
|
|
@@ -51,7 +51,7 @@ private[spark] abstract class SocketAuthServer[T]( | |
| logTrace("Creating listening socket") | ||
| val serverSocket = new ServerSocket(0, 1, InetAddress.getByAddress(Array(127, 0, 0, 1))) | ||
| // Close the socket if no connection in configured seconds | ||
|
||
| val timeout = SparkEnv.get.conf.get(PYTHON_GATEWAY_CONNECT_TIMEOUT).toInt | ||
| val timeout = SparkEnv.get.conf.get(PYTHON_AUTH_SOCKET_TIMEOUT).toInt | ||
| logTrace(s"Setting timeout to $timeout sec") | ||
| serverSocket.setSoTimeout(timeout * 1000) | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.