You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the same SimpleDateFormat instance is shared between all log writers. I think that can cause some concurrency issues, because SimpleDateFormat is not thread safe.
The text was updated successfully, but these errors were encountered:
Hi Jarppe, thanks for the report! I've pushed an attempted soln. with v2.5.0 but I'm not certain if it actually fixes the problem since I'm not sure how to produce a detectable error with the old version. Any ideas?
Yeah, I guess the only way to reveal threading problems is to stress test it with multiple threads and hope for the best.
Your fix looks good to me, should be thread safe now. In similar situations I have used the DateTimeFormat from JodaTime library as it's fully thread safe, but that would mean a new dependency.
Hi Jarppe, thanks for the report! I've pushed an attempted soln. with v2.5.0 but I'm not certain if it actually fixes the problem since I'm not sure how I'd produce a detectable actual error with the old version. Any ideas?
—
Reply to this email directly or view it on GitHub.
It looks like the same SimpleDateFormat instance is shared between all log writers. I think that can cause some concurrency issues, because SimpleDateFormat is not thread safe.
The text was updated successfully, but these errors were encountered: