Nibooor opened a new pull request #26598: [SPARK-29861][CORE] Reduce downtime 
in Spark standalone HA master switch
URL: https://github.com/apache/spark/pull/26598
 
 
   ### What changes were proposed in this pull request?
   1. Close open zookeeper connections during spark shutdown (SIGTERM)
   2. Bump the curator version to 4.2.0
   3. Implement a custom error policy that is tolerant to a zookeeper 
connection suspension.
   
   ### Why are the changes needed?
   As described in 
[SPARK-29861](https://issues.apache.org/jira/browse/SPARK-29861), the recovery 
process of Spark (standalone) master in HA with zookeeper took about 1-2 
minutes. During this time no spark master is active, which makes interaction 
with spark essentially impossible.
   
   Justification for the changes:
   1. because the spark master election does not properly restart if there are 
still open zookeeper connections
   2. as a precondition for 3
   3. to not restart spark when the connection is suspended temporarily, but 
only if it is really closed.
   
   ### Does this PR introduce any user-facing change?
   No.
   
   ### How was this patch tested?
   <!--
   If tests were added, say they were added here. Please make sure to add some 
test cases that check the changes thoroughly including negative and positive 
cases if possible.
   If it was tested in a way different from regular unit tests, please clarify 
how you tested step by step, ideally copy and paste-able, so that other 
reviewers can test and check, and descendants can verify in the future.
   If tests were not added, please describe why they were not added and/or why 
it was difficult to add.
   -->
   * Set up spark with two masters in standalone mode and zookeeper
   * Kill active master
   * Observe that the second master takes over immediately (within a few 
milliseconds)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to