Details
-
Bug
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
2.3.0
-
None
-
None
-
None
Description
When job is submitted through CLI class, Job connects to the cluster. However, cluster is never closed in this case and ClientProtocolProvider.close() is never invoked.
In all other cases Cluster is gracefully closed explicitly in finally block.
This can be easily resolved e.g. by wrapping call to job.submit() in try-finally block:
try {
job.submit();
}
finally {
Cluster jobCluster = job.getCluster();
if (jobCluster != null)
jobCluster.close();
}