CoxAutomotiveDataSolutions / waimak

Waimak is an open-source framework that makes it easier to create complex data flows in Apache Spark.
Apache License 2.0
75 stars 16 forks source link

Hotfix/1.4.3 - Fix thread leak in storage #24

Closed alexjbush closed 6 years ago

alexjbush commented 6 years ago

Description

This adds an explicit cleanup on thread pools since they will not be destroyed until the GC is called. In some cases, this is not quick enough and the uploaded exhausts the number of available threads of the user.

Fixes #23 Azure table uploader spawning too many threads

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

I have ran this on current high workload job, and checked jstack. There was a normal number of threads (~30) instead of the several thousand before.

I will manually finish the hotfix after the PR is approved