-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LIVY-1003][RSC] Interactive session - Setting large value of rsc.ser…
…ver.connect.timeout blocks other tasks ## What changes were proposed in this pull request? The main adjustment here is the thread pool used when creating and closing sessions asynchronously. Scala's default thread pool size is limited, which will cause the waiting thread to be blocked. https://issues.apache.org/jira/browse/LIVY-1003 ## How was this patch tested? How to reproduce: 1. Set `livy.rsc.server.connect.timeout` to something high like 24h. 2. Create enough interactive livy sessions in YARN so that they are queued in ACCEPTED state. The number of sessions that are stuck in ACCEPTED state should be equal to global execution context [thread pool size](https://docs.scala-lang.org/overviews/core/futures.html#the-global-execution-context) (Runtime.availableProcessors) 3. Try to delete a session using DELETE /sessions/{sessionId} and it should not be hang until one of the sessions is no longer stuck in ACCEPTED state.
- Loading branch information
1 parent
6dcb294
commit 6097af1
Showing
3 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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 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 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