Endless (busy) loop in 
org.continuent.sequoia.controller.cache.result.ResultCache.flushCache()
----------------------------------------------------------------------------------------------

         Key: SEQUOIA-991
         URL: https://forge.continuent.org/jira/browse/SEQUOIA-991
     Project: Sequoia
        Type: Bug

  Components: Core  
    Versions: Sequoia 2.10.9    
 Environment: 2 hosts; RHEL 4; Sun Java 1.5.0 update 13; 2 Sequoia Controllers 
(one on each host), each controlling a single PostgreSQL 8.2 backend; single 
virtual database; JBoss / Hibernate clients
    Reporter: Michal Ruzicka
    Priority: Critical


The controller loops indefinitely in the 
org.continuent.sequoia.controller.cache.result.ResultCache.flushCache() at 
lines 856-860:
856:        while (!queries.isEmpty())
857:        {
858:          Iterator iter = queries.values().iterator();
859:          ((AbstractResultCacheEntry) iter.next()).invalidate();
860:        }

The queries HasMap contains only entries which doesn't belong to any cache 
(their cache fields are null). The invalidate() call is then helpless as it can 
only remove an entry from a cache if the entry has its cache reference set.

This bug seems to tied with "Unable to remove pending query" warning(s) like 
this:
15:01:44,499 WARN  sequoia.controller.cache Unable to remove pending query 
postgres,select id from OutgoingEmail where id =? for update/<!%L|1730515|!%>



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   https://forge.continuent.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

_______________________________________________
Sequoia mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/sequoia

Reply via email to