Community
Participate
Working Groups
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009090216 Firefox/3.0.1 Build Identifier: CDO 2.0.0.v200906160459 The bug description says it all. Whatever values are specified in cdo-server.xml, the LRURevisionCache is always configured with the defaults values of (1000, 1000). I'll attach a patch in a minute. Reproducible: Always
Created attachment 149627 [details] Patch for 2.0.0
Good catch! I only changed the way the properties are set. This only happens if an LRUCache is used at all. In general I'm not very satisfied with the way repos are setup at all. Maybe opening up all internal code will do the trick in the future. Then we can avoid all these awful static create() methods and make configuration more straight forward... Committed to R2_0_maintenance
Comment on attachment 149627 [details] Patch for 2.0.0 Jasper, please confirm that: 1) The number of lines that you changed is smaller than 250. 2) You are the only author of these changed lines. 3) You apply the EPL to these changed lines.
(In reply to comment #3) > (From update of attachment 149627 [details]) > Jasper, please confirm that: > > 1) The number of lines that you changed is smaller than 250. > 2) You are the only author of these changed lines. > 3) You apply the EPL to these changed lines. I confirm.
Reopening because LRU settings are still ignored if the LRUCache is contained inside a TwoLevelCache. They are only applied if the top-level cache is an LRUCache. By the way, the patch that I provided on Oct 15 didn't suffer from this shortcoming. What was committed to R2_0_maintenance was significantly different from the patch - and broke it.
Created attachment 153050 [details] Patch for 2.0 [incremental] Patch is in the spirit of what was committed, but inspects a TwoLevelCache's L1 and L2 to see if they are instances of LRURevisionCache. This is incremental; applies to R2_0_maintenance as of today.
Created attachment 155041 [details] Patch - ready to be committed I made it recursive to handle nested TwoLevelCaches.
Committed to R2_0_maintenance
Available in 2.0.2: https://build.eclipse.org/hudson/job/emf-cdo-maintenance/44/artifact/result/site.p2/