Community
Participate
Working Groups
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 Build Identifier: If multiple threads try to set properties on a job at the same time, not all properties will be set. Some synchronization is necessary. I propose giving the ObjectMap that stores properties CopyOnWrite semantics. Reproducible: Always
Created attachment 151520 [details] set property patch v1 Modified OrderedMap to use copy-on-write. Preserved backward compatibility: added setProperty2(QualifiedName, Object) It is not compatible to change return type. btw, I manually edited this patch to remove some overlapping edits. lets see how it goes.
Created attachment 151571 [details] get/set patch v2 Renamed setProperty2 to setPropertyIfAbsent() which adds an atomic operation. (Set a property if not already set) This is necessary for accurate property setting from multiple threads at once. Added javadoc and @since tag. This patch is ready to go. Please review.
Created attachment 163917 [details] putIfAbsent v3 Updated patch so it applies cleanly to latest 3.6M6 changes.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.