rcongiu / Hive-JSON-Serde

Read - Write JSON SerDe for Apache Hive.
Other
733 stars 391 forks source link

Make SimpleDateFormat usages thread-local to fix date parsing corruption #228

Open pettyjamesm opened 4 years ago

pettyjamesm commented 4 years ago

SimpleDateFormat is not threadsafe since it mutates fields internally during calls to parse and format. This changes previously static instances of SimpleDateFormat into static thread-local instances to avoid the the possibility of data becoming corrupted as a result of concurrent accesses to these instances from multiple threads.

Fixes https://github.com/rcongiu/Hive-JSON-Serde/issues/227

chickenPopcorn commented 3 years ago

@rcongiu any update on when this can be merged in?

rmitula commented 2 years ago

Any updates on it?