[GRP-725] subject api caching problem Created: 12/Jan/12  Updated: 14/Jan/12  Resolved: 13/Jan/12

Status: Resolved
Project: Grouper
Component/s: UI
Affects Version/s: 2.0.3
Fix Version/s: 2.0.4

Type: Bug Priority: Minor
Reporter: Chris Hyzer (upenn.edu) Assignee: Chris Hyzer (upenn.edu)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File patchSubjectResolver.txt    

 Description   

There was a subject search caching issue with the lite ui combobox which made it difficult for users to add people to groups. I changed the grouper.ehcache.xml config file so that the caching is not used (1 second), which fixes the problem. I will look through the code to find out why this occurs and what the real solution is. (Note, I dont know which subject searches/caches are affected yet, so to be safe I set all to 1, but it is at least FindPage)

<!-- @see CachingResolver#find(...) -->
<cache name="edu.internet2.middleware.grouper.subj.CachingResolver.Find"
maxElementsInMemory="5000"
eternal="false"
timeToIdleSeconds="1"
timeToLiveSeconds="1"
overflowToDisk="false"
/>

<!-- @see CachingResolver#findAll(...) -->
<cache name="edu.internet2.middleware.grouper.subj.CachingResolver.FindAll"
maxElementsInMemory="5000"
eternal="false"
timeToIdleSeconds="1"
timeToLiveSeconds="1"
overflowToDisk="false"
/>

<!-- @see CachingResolver#findPage(...) -->
<cache name="edu.internet2.middleware.grouper.subj.CachingResolver.FindPage"
maxElementsInMemory="5000"
eternal="false"
timeToIdleSeconds="1"
timeToLiveSeconds="1"
overflowToDisk="false"
/>

<!-- @see CachingResolver#findByIdentifier(...) -->
<cache name="edu.internet2.middleware.grouper.subj.CachingResolver.FindByIdentifier"
maxElementsInMemory="5000"
eternal="false"
timeToIdleSeconds="1"
timeToLiveSeconds="1"
overflowToDisk="false"
/>

<!-- @see CachingResolver#findByIdOrIdentifier(...) -->
<cache name="edu.internet2.middleware.grouper.subj.CachingResolver.FindByIdOrIdentifier"
maxElementsInMemory="5000"
eternal="false"
timeToIdleSeconds="1"
timeToLiveSeconds="1"
overflowToDisk="false"
/>

Thanks,
Chris



 Comments   
Comment by mchyzer [ 13/Jan/12 ]

This is fixed, tweak in CachingResolver. Note that this is only a problem on searches when multiple sources are specified, which is rare, at Penn this happened in our SubjectPicker screen where we specify that the sources are PennPerson or groups (not external people or kerberos principals). Attached is the patch

Generated at Thu Mar 28 13:54:24 UTC 2024 using Jira 9.4.15#940015-sha1:bdaa9cbecfb6791ea579749728cab771f0dfe90b.