husky-team / husky

A more expressive and most importantly, more efficient system for distributed data analytics.
http://www.husky-project.com/
Other
98 stars 55 forks source link

Initialization of Aggregator Factory Not Work Properly for the Second Time #284

Closed zzxx-husky closed 7 years ago

zzxx-husky commented 7 years ago

The initialization of aggregator factory uses call_once to initialize some globally shared variables. When we terminate all the worker threads and create a new group of worker threads, the call_once fails to refresh its state and thus the initialization of aggregator factory fails for the second time.

This can be fixed by simply using std::mutex.