[
https://issues.jboss.org/browse/GTNPORTAL-1866?page=com.atlassian.jira.pl...
]
Marek Posolda commented on GTNPORTAL-1866:
------------------------------------------
One thing for completion:
I've just tried to change configuration option warnNoExpirationKey in JBC
configuration to "true". And as I expected, I am now seeing many records like
this in server console:
12:46:56,380 WARN [ExpirationAlgorithm] No expiration key 'expiration' for Node:
/NODE_MAIN_ROOT/idm_realm/GROUPS_SEARCHES/-1871656266
12:46:56,380 WARN [ExpirationAlgorithm] No expiration key 'expiration' for Node:
/NODE_MAIN_ROOT/idm_realm/GROUPS_SEARCHES/493260515
12:46:56,380 WARN [ExpirationAlgorithm] No expiration key 'expiration' for Node:
/NODE_MAIN_ROOT/idm_realm/GROUPS_SEARCHES/2125183625
12:46:56,380 WARN [ExpirationAlgorithm] No expiration key 'expiration' for Node:
/NODE_GTN_ORG_SERVICE_INT_CACHE_MAIN_ROOT/idm_realm/NODE_GTN_GROUP_ID/jbpid_group_id_._._root_type_._._GTN_ROOT_GROUP
12:46:56,380 WARN [ExpirationAlgorithm] No expiration key 'expiration' for Node:
/NODE_GTN_ORG_SERVICE_INT_CACHE_MAIN_ROOT/idm_realm/NODE_GTN_GROUP_ID/jbpid_group_id_._._root_type_._._organization
12:46:56,380 WARN [ExpirationAlgorithm] No expiration key 'expiration' for Node:
/NODE_GTN_ORG_SERVICE_INT_CACHE_MAIN_ROOT/idm_realm/NODE_GTN_GROUP_ID/jbpid_group_id_._._.organization_._._management
12:46:56,380 WARN [ExpirationAlgorithm] No expiration key 'expiration' for Node:
/NODE_GTN_ORG_SERVICE_INT_CACHE_MAIN_ROOT/idm_realm/NODE_GTN_GROUP_ID/jbpid_group_id_._._.organization.management_._._executive-board
12:46:56,380 WARN [ExpirationAlgorithm] No expiration key 'expiration' for Node:
/NODE_MAIN_ROOT/idm_realm/ATTRIBUTES/jbpid_group_id_._._.platform_._._administrators
12:46:56,380 WARN [ExpirationAlgorithm] No expiration key 'expiration' for Node:
/NODE_MAIN_ROOT/idm_realm/GROUPS_SEARCHES/1951784768
12:46:56,380 WARN [ExpirationAlgorithm] No expiration key 'expiration' for Node:
/NODE_MAIN_ROOT/idm_realm/GROUPS_SEARCHES/1795216713
Issue with picketlink cache - cached items are never evicted
------------------------------------------------------------
Key: GTNPORTAL-1866
URL:
https://issues.jboss.org/browse/GTNPORTAL-1866
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Environment: EPP 5.1.0.GA, Picketlink version is 1.1.7.GA
Reporter: Marek Posolda
Assignee: Boleslaw Dawidowicz
I think there is issue related to expiration of JBoss cache entries, which are used for
picketlink cache. Right now, JBoss cache in
server/default/deploy/gatein.ear/02portal.war/WEB-INF/organization/picketlink-idm/jboss-cache.xml
and jboss-cache-cluster.xml is configured to use Expiration algorithm:
<eviction wakeUpInterval="5000">
<default algorithmClass="org.jboss.cache.eviction.ExpirationAlgorithm"
eventQueueSize="1000000">
<property name="maxNodes" value="100000" />
<property name="timeToLive" value="120000" />
<property name="warnNoExpirationKey" value="false" />
</default>
</eviction>
Problem is that ExpirationAlgorithm requires support in Java code for eviction, which is
mentioned in
http://docs.jboss.org/jbosscache/3.1.0.CR1/userguide_en/html/eviction_pol...
. There is need to call something like:
// sets the expiry time for a node
cache.getRoot().addChild(fqn1).put(ExpirationConfiguration.EXPIRATION_KEY, future);
otherwise node is never evicted periodically. And I am seeing that this is not called in
Picketlink code and GateIn+Picketlink integration code. And I am seeing in JMX that nodes
are never evicted automatically after some time. Fact is that entries are cleared from
cache only by trigger of some events (For example after update of some user are entries
for this user evicted from cache).
Last week I was working on application for adding users into GateIn IDM database only
with plain SQL. And when I create users, I am not seeing them in organization management
portlet because query for get all users is never evicted from cache. I need to restart my
GateIn portal or trigger JMX eviction of picketlink cache (Operation
"invalidateAll" on MBean
exo:name=plidmcache,portal="portal",service=PicketLinkIDMCacheService .
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira