centic commented on Bug JENKINS-21044

Some more info for anybody trying to work on this, I did some more investigation and found out the following:

  • Replacing the WeakHashMap with HashMap is tricky as the configuration XML of the plugin also contains the type of Map, so you need to replace it there as well otherwise you'll still end up with WeakHashMaps (cost me a couple hours to find that out!)
  • I think this is also the reason why the problem happens in the first place, the config-serialization is reflection-based and constructs the WeakHashMap outside of the synchronization, thus multiple threads still can access the data concurrently and because of this no synchronization whatsoever will fix it!
  • That also explains why you do not see it always. It only happens if you have a number of throttles defined and use them in multiple jobs. Also starting up will sometimes work, but it may still fail later when the properties are accessed when jobs are started.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to