[JBoss JIRA] (ISPN-1545) Enhance logging during cache shutdown
by Mircea Markus (Created) (JIRA)
Enhance logging during cache shutdown
-------------------------------------
Key: ISPN-1545
URL: https://issues.jboss.org/browse/ISPN-1545
Project: Infinispan
Issue Type: Feature Request
Affects Versions: 5.1.0.BETA5
Reporter: Mircea Markus
Assignee: Mircea Markus
Fix For: 5.1.0.CR1
When cache shuts down the transaction table recalculates its minViewId value based on the new topology. When the whole cluster shuts down though, the thread that recalculates might throw an exception (expected) because it's internal components (RPC in this example) are not responding anymore. This causes a lot of log noise in the logs, which should be removed:
2011-11-16 17:08:29,045 WARN [jta] (Transaction Reaper Worker 0) ARJUNA16045: attempted rollback of < formatId=131076, gtrid_length=29, bqual_length=28, tx_uid=0:ffffac11fa3e:c0a2:4ec3df75:a055, node_name=1, branch_uid=0:ffffac11fa3e:c0a2:4ec3df75:a056, eis_name=unknown eis name > (TransactionXaAdapter{localTransaction=LocalXaTransaction{xid=< formatId=131076, gtrid_length=29, bqual_length=28, tx_uid=0:ffffac11fa3e:c0a2:4ec3df75:a055, node_name=1, branch_uid=0:ffffac11fa3e:c0a2:4ec3df75:a056, eis_name=unknown eis name >} LocalTransaction{remoteLockedNodes=[9124b480-6ae0-5267-d9f8-3d66ea7ec581, 86c0fc2d-a0da-adb4-5343-940d6bdb1aa0], isMarkedForRollback=true, transaction=TransactionImple < ac, BasicAction: 0:ffffac11fa3e:c0a2:4ec3df75:a055 status: ActionStatus.ABORTING >, lockedKeys=null, backupKeyLocks=null, viewId=1} org.infinispan.transaction.xa.LocalXaTransaction@2947}) failed with exception code -
org.infinispan.CacheException: The cache has been stopped and invocations are not allowed!
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.getViewId(JGroupsTransport.java:197)
at org.infinispan.transaction.TransactionTable.getCurrentViewId(TransactionTable.java:372)
at org.infinispan.transaction.TransactionTable.recalculateMinViewIdIfNeeded(TransactionTable.java:387)
at org.infinispan.transaction.TransactionTable.removeLocalTransactionInternal(TransactionTable.java:318)
at org.infinispan.transaction.TransactionTable.removeLocalTransaction(TransactionTable.java:306)
at org.infinispan.transaction.xa.XaTransactionTable.removeLocalTransaction(XaTransactionTable.java:61)
at org.infinispan.transaction.TransactionTable.failureCompletingTransaction(TransactionTable.java:188)
at org.infinispan.transaction.TransactionCoordinator.rollback(TransactionCoordinator.java:145)
at org.infinispan.transaction.xa.TransactionXaAdapter.rollback(TransactionXaAdapter.java:136)
at com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLevelAbort(XAResourceRecord.java:337)
at com.arjuna.ats.arjuna.coordinator.BasicAction.doAbort(BasicAction.java:2869)
at com.arjuna.ats.arjuna.coordinator.BasicAction.doAbort(BasicAction.java:2848)
at com.arjuna.ats.arjuna.coordinator.BasicAction.Abort(BasicAction.java:1613)
at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.cancel(TwoPhaseCoordinator.java:119)
at com.arjuna.ats.arjuna.AtomicAction.cancel(AtomicAction.java:212)
at com.arjuna.ats.arjuna.coordinator.TransactionReaper.doCancellations(TransactionReaper.java:367)
at com.arjuna.ats.internal.arjuna.coordinator.ReaperWorkerThread.run(ReaperWorkerThread.java:79)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 12 months
[JBoss JIRA] (ISPN-1546) FineGrainedAtomicMap key and value iterators are not threadsafe
by Sanne Grinovero (Created) (JIRA)
FineGrainedAtomicMap key and value iterators are not threadsafe
---------------------------------------------------------------
Key: ISPN-1546
URL: https://issues.jboss.org/browse/ISPN-1546
Project: Infinispan
Issue Type: Bug
Components: Core API, Locking and Concurrency
Reporter: Sanne Grinovero
Assignee: Manik Surtani
Invoking #keySet() or #values() might fail, even when using a transaction to isolate threads:
{code}
java.util.ConcurrentModificationException
at org.infinispan.util.FastCopyHashMap$FasyCopyHashMapIterator.nextEntry(FastCopyHashMap.java:484)
at org.infinispan.util.FastCopyHashMap$KeyIterator.next(FastCopyHashMap.java:560)
at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
at org.infinispan.atomic.FineGrainedAtomicHashMapProxy.keySet(FineGrainedAtomicHashMapProxy.java:104)
at org.hibernate.ogm.dialect.infinispan.InfinispanAssociationSnapshot.getRowKeys(InfinispanAssociationSnapshot.java:59)
at org.hibernate.ogm.datastore.spi.Association.getKeys(Association.java:132)
at org.hibernate.ogm.loader.OgmLoader.getResultSet(OgmLoader.java:420)
at org.hibernate.ogm.loader.OgmLoader.doQuery(OgmLoader.java:248)
at org.hibernate.ogm.loader.OgmLoader.doQueryAndInitializeNonLazyCollections(OgmLoader.java:215)
at org.hibernate.ogm.loader.OgmLoader.loadCollection(OgmLoader.java:185)
at org.hibernate.ogm.loader.OgmBasicCollectionLoader.initialize(OgmBasicCollectionLoader.java:42)
at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:622)
at org.hibernate.event.internal.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:82)
at org.hibernate.internal.SessionImpl.initializeCollection(SessionImpl.java:1607)
at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:379)
at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:112)
at org.hibernate.collection.internal.PersistentSet.iterator(PersistentSet.java:180)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 12 months
[JBoss JIRA] (ISPN-1649) JDBC cache loader "dropTablesOnExit" does not work
by dex chen (Created) (JIRA)
JDBC cache loader "dropTablesOnExit" does not work
--------------------------------------------------
Key: ISPN-1649
URL: https://issues.jboss.org/browse/ISPN-1649
Project: Infinispan
Issue Type: Bug
Components: Loaders and Stores
Affects Versions: 5.1.0.CR1
Environment: ISPN 5.1.x, Java 7, H2 DB on Linux
Reporter: dex chen
Assignee: Manik Surtani
I configure my JDBC cache loader with H2 engine using filesystem as store. I set the "dropTablesOnExit" to "true", but I still see the tables/and the data after I stop the cache. Basically, "dropTablesOnExist" has no effect.
sample config:
<loader
class="org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore"
fetchPersistentState="true"
purgeOnStartup="false">
<properties>
<property name="stringsTableNamePrefix" value="ISPN_STRING_TABLE"/>
<property name="idColumnName" value="ID_COLUMN"/>
<property name="dataColumnName" value="DATA_COLUMN"/>
<property name="timestampColumnName" value="TIMESTAMP_COLUMN"/>
<property name="timestampColumnType" value="BIGINT"/>
<property name="connectionFactoryClass" value="org.infinispan.loaders.jdbc.connectionfactory.PooledConnectionFactory"/>
<property name="connectionUrl" value="jdbc:h2:file:/tmp/testStore;DB_CLOSE_DELAY=-1"/>
<property name="userName" value="sa"/>
<property name="driverClass" value="org.h2.Driver"/>
<property name="idColumnType" value="VARCHAR(255)"/>
<property name="dataColumnType" value="BINARY"/>
<property name="dropTableOnExit" value="true"/>
<property name="createTableOnStart" value="true"/>
</properties>
</loader>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 12 months