3 Replies Latest reply on Feb 2, 2005 1:23 PM by Ben Wang

    Evict all nodes from a cache

    R G Newbie

      Hi friends, I've got this message while I am trying to evict all nodes from a cache, but finally the nodes are evicted from memory so I don't know what does it means.



      12:38:23,781 ERROR [LockInterceptor] entry for transaction <null>:3 not found (maybe already committed)
      12:38:25,859 WARN [LRUAlgorithm] evict(): Node not found with this fqn: /META Could have been evicted earlier already
      12:38:25,875 ERROR [EvictionTimerTask] run(): error processing eviction with exception: org.jboss.cache.eviction.EvictionException: LRUAlgorithm.removeFromQueue(): internal error. Can't find fqn in nodeMap. fqn: /META will reset the eviction queue list.
      12:38:25,875 INFO [Region] reseteEvictionQueues(): node queue size: 3 region name: /_default_/
      12:38:25,875 INFO [STDOUT] org.jboss.cache.eviction.EvictionException: LRUAlgorithm.removeFromQueue(): internal error. Can't find fqn in nodeMap. fqn: /META
      12:38:25,875 INFO [STDOUT] at org.jboss.cache.eviction.LRUAlgorithm.removeFromQueue(LRUAlgorithm.java:216)
      12:38:25,875 INFO [STDOUT] at org.jboss.cache.eviction.LRUAlgorithm.processRemovedNodes(LRUAlgorithm.java:108)
      12:38:25,875 INFO [STDOUT] at org.jboss.cache.eviction.LRUAlgorithm.processQueues(LRUAlgorithm.java:81)
      12:38:25,875 INFO [STDOUT] at org.jboss.cache.eviction.LRUAlgorithm.process(LRUAlgorithm.java:51)
      12:38:25,875 INFO [STDOUT] at org.jboss.cache.eviction.EvictionTimerTask.run(EvictionTimerTask.java:35)
      12:38:25,875 INFO [STDOUT] at java.util.TimerThread.mainLoop(Timer.java:432)
      12:38:25,875 INFO [STDOUT] at java.util.TimerThread.run(Timer.java:382)


      Does anybody know what happens with this???? I have been looking for a similar problem in the forum and I haven't found anything.

      I am working with Jboss 4.0.1 and JbossCache 1.2 and I am calling the evict method in the following way:

      treeCache.evict(Fqn.fromString("/"));


      is it ok??


      This is the mbean config in -service.xml:

      <mbean code="org.jboss.cache.TreeCache"
       name="qnecta.cache:service=TreeCacheCalidadA">
      
       <depends>jboss:service=Naming</depends>
       <depends>jboss:service=TransactionManager</depends>
      
       <attribute name="JndiName">/treecache/TreeCacheB</attribute>
      
       <!--
       Configure the TransactionManager
       -->
       <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>
      
      
       <!--
       SERIALIZABLE
       REPEATABLE_READ (default)
       READ_COMMITTED
       READ_UNCOMMITTED
       NONE
       -->
       <attribute name="IsolationLevel">SERIALIZABLE</attribute>
      
       <!--
       Valid modes are LOCAL
       REPL_ASYNC
       REPL_SYNC
       -->
       <attribute name="CacheMode">LOCAL</attribute>
      
      
       <!--
       Just used for async repl: use a replication queue
       -->
       <attribute name="UseReplQueue">false</attribute>
      
       <!--
       Replication interval for replication queue (in ms)
       -->
       <attribute name="ReplQueueInterval">60000</attribute>
      
       <!--
       Max number of elements which trigger replication
       -->
       <attribute name="ReplQueueMaxElements">100</attribute>
      
       <!--
       The max amount of time (in milliseconds) we wait until the
       initial state (ie. the contents of the cache) are retrieved from
       existing members in a clustered environment
       -->
       <attribute name="InitialStateRetrievalTimeout">5000</attribute>
      
       <!--
       Number of milliseconds to wait until all responses for a
       synchronous call have been received.
       -->
       <attribute name="SyncReplTimeout">10000</attribute>
      
       <!-- Max number of milliseconds to wait for a lock acquisition -->
       <attribute name="LockAcquisitionTimeout">30000</attribute>
      
       <!-- Name of the eviction policy class. -->
      
       <attribute name="EvictionPolicyClass">org.jboss.cache.eviction.LRUPolicy</attribute>
      
      
       <!-- Specific eviction policy configurations. This is LRU -->
      
       <attribute name="EvictionPolicyConfig">
       <config>
       <attribute name="wakeUpIntervalSeconds">5</attribute>
       <region name="/_default_">
       <attribute name="maxNodes">5000</attribute>
       <attribute name="timeToLiveSeconds">1000</attribute>
       </region>
       </config>
       </attribute>
      
      
      <attribute name="CacheLoaderClass">org.jboss.cache.loader.FileCacheLoader</attribute>
       <attribute name="CacheLoaderConfig">
       location=C:/Desarrollos_Qnecta2/qnecta/resources/jboss-cache/storeA
       </attribute>
       <attribute name="CacheLoaderShared">false</attribute>
       <attribute name="CacheLoaderFetchTransientState">false</attribute>
       <attribute name="CacheLoaderFetchPersistentState">true</attribute>
      
       </mbean>




      Thanks all.