There are a bunch of Jira issues regarding reconnect management of Spark, if the network connection is lost. The patch below enhances the reconnect logic and baked some time in our trunk.
The following patch can be applied to the trunk rev 10983 and was tested against this revision.