-
Notifications
You must be signed in to change notification settings - Fork 295
Potential thread-safety fix for Memento from Luda. #180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This presumably needs fixing too: openwayback/wayback-cdx-server/src/main/java/org/archive/cdxserver/writer/MementoLinkWriter.java Line 102 in 0041e3d
And there may be others: https://github.com/iipc/openwayback/search?utf8=%E2%9C%93&q=SimpleDateFormat&type=Code Although, I'm pretty sure those Memento JSPs are no longer needed since @ikreymer moved the Memento support into core. The fix is pretty clunky, so I'd consider switching to FastDateFormat if Commons Lang 3.x is already on the classpath. |
Tested this locally by making multiple, synchronous requests for resources and comparing all the OpenWayback timestamps to the 'datetime' attributes. In every case they matched so this appears to fix the issue. However, before merging this, do we need to fix the other |
I can change the other files if it helps to push the issue. Do we want to go with FastDateFormat (new dependency) or want to keep the Thread Local approach? The memento related *.jsp are not used. |
It seems that FastDateFormat is already on the class path, so we could use it straight away, e.g. via DateFormatUtils.formatUTC with the US Locale. |
There is commons-lang-2.5.jar in classpath , but it only has format On Wed, Nov 5, 2014 at 6:07 AM, Andy Jackson [email protected]
|
Then we'll have to stick to the ThreadLocal syntax if we're going to do this as a bug release. |
Potential thread-safety fix for Memento from Luda.
Lets pull this and close it down, but leave #177 open until we've tested it. |
(Partial?) fix for #177 - UKWA can help test this when @PsypherPunk is able to deploy this branch.
Email quoth: