Description
In SparkTask, we try to get job infos after the query finishes. Assume the job finishes due to remote side crashes and thus closes the RPC. There's a race condition: if we try to get job info before we notice the RPC is closed, the SparkTask waits for hive.spark.client.future.timeout (default 60s) before it returns, even though we already know the job has failed.