[JBoss JIRA] (ISPN-1502) Configuration TransactionType missing autocommit setter
by Aaron Douglas (Created) (JIRA)
Configuration TransactionType missing autocommit setter
-------------------------------------------------------
Key: ISPN-1502
URL: https://issues.jboss.org/browse/ISPN-1502
Project: Infinispan
Issue Type: Bug
Components: Configuration
Affects Versions: 5.1.0.BETA3
Reporter: Aaron Douglas
Assignee: Manik Surtani
I am attempting to use the following XML in my configuration:
{code}
<transaction transactionMode="TRANSACTIONAL" autoCommit="true"/>
{code}
But am receiving the message:
{code}
Caused by: java.io.IOException: The property has a getter "public java.lang.Boolean org.infinispan.config.Configuration$TransactionType.isAutoCommit()" but no setter. For unmarshalling, please define setters. (Or if this is a collection property, make sure that the getter returns a collection instance.)
at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:263) [infinispan-core-5.1.0.BETA3.jar:]
at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:281) [infinispan-core-5.1.0.BETA3.jar:]
at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:133) [infinispan-core-5.1.0.BETA3.jar:]
at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:109) [infinispan-core-5.1.0.BETA3.jar:]
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:253) [infinispan-core-5.1.0.BETA3.jar:]
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:239) [infinispan-core-5.1.0.BETA3.jar:]
at org.hibernate.search.infinispan.CacheManagerServiceProvider.start(CacheManagerServiceProvider.java:94) [hibernate-search-infinispan-3.4.1.Final.jar:]
... 52 more
{code}
It appears the setter is missing the word "set" in front of it.
{code}
@Override
public TransactionConfig autoCommit(boolean enabled) {
testImmutability("autoCommit");
this.autoCommit = enabled;
return this;
}
{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
13 years, 10 months
[JBoss JIRA] Created: (ISPN-1364) Allow use of CacheContainer interface for cache manager configuration
by Kevin Pollet (JIRA)
Allow use of CacheContainer interface for cache manager configuration
---------------------------------------------------------------------
Key: ISPN-1364
URL: https://issues.jboss.org/browse/ISPN-1364
Project: Infinispan
Issue Type: Enhancement
Components: CDI integration
Affects Versions: 5.0.0.FINAL, 5.0.0.CR8
Reporter: Kevin Pollet
Assignee: Kevin Pollet
Fix For: 5.1.0.BETA1, 5.1.0.FINAL
Currently the {{infinispan-cdi}} extension only works with the {{EmbeddedCacheManager}} interface. That means that a cache manager cannot be configured with a producer of type {{CacheContainer}}. The CDI extension has to be flexible and allow to use the interface {{EmbeddedCacheManager}} or {{CacheContainer}}.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months
[JBoss JIRA] Created: (ISPN-1411) ISPN cache is hung when try to read data from DB
by Anatoliy Bazko (JIRA)
ISPN cache is hung when try to read data from DB
------------------------------------------------
Key: ISPN-1411
URL: https://issues.jboss.org/browse/ISPN-1411
Project: Infinispan
Issue Type: Bug
Components: Marshalling
Affects Versions: 5.0.0.FINAL
Environment: Oracle 11.1.6.0.0
Reporter: Anatoliy Bazko
Assignee: Manik Surtani
Have a look on AbstractMarshaller.objectFromInputStream(InputStream inputStream).
When inputStream.available() returns 0 (but it doesn't mean that stream is empty) we have never ended cycle below
{code}
while ((bytesRead = inputStream.read(buf, 0, buf.length)) != -1) bytes.write(buf, 0, bytesRead);
{code}
I personally can reproduce this with Oracle DB
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months
[JBoss JIRA] (ISPN-1525) Different transactions using same dummy XIDs
by Galder Zamarreño (Created) (JIRA)
Different transactions using same dummy XIDs
--------------------------------------------
Key: ISPN-1525
URL: https://issues.jboss.org/browse/ISPN-1525
Project: Infinispan
Issue Type: Bug
Components: Transactions
Affects Versions: 5.1.0.BETA4
Reporter: Galder Zamarreño
Assignee: Mircea Markus
Priority: Critical
Fix For: 5.1.0.CR1
As shown in the attached log, different transactions running in separate threads are generating the same XID, in this particular case, XID with:
{code}globalTransactionId: ByteArray{size=64, array=[-36, -4, 27, 111, 3, 49, 118, -49, 55, 74, 25, 12, 57, -96, 17, -119, -30, -113, 98, -42, -52, 49, 74, 93, 44, -94, 39, -71, -54, 37, 108, -102, -113, 82, 73, -88, 103, 88, -44, -49, -58, 127, -93, 83, 32, 124, 18, 83, 35, -116, -38, 43, -26, -87, 20, -82, -29, 36, -20, 50, 97, -18, -30, 80]}
branchQualifier = ByteArray{size=64, array=[-104, 118, -26, -26, -67, -13, -84, -71, -34, -99, -124, 111, -83, -71, 2, 97, -9, 40, 12, -108, -127, 9, -92, -112, 1, 38, 99, 21, -126, 10, -36, 114, -26, 82, -74, 26, -14, -102, -8, -104, 55, -33, 109, 33, 97, -20, 51, 5, -122, -99, -17, -39, 59, -26, 124, -57, 6, -47, -34, -35, -79, 15, -67, -12]}{code}
In the log, we see both Stressor-0 and Stressor-1 using the same transaction. I've added some further logging because this sometimes leads (not shown in the logs) to spurious erros such as:
{code}javax.transaction.xa.XAException
at org.infinispan.transaction.xa.TransactionXaAdapter.getLocalTransactionAndValidateImpl(TransactionXaAdapter.java:237)
at org.infinispan.transaction.xa.TransactionXaAdapter.getLocalTransactionAndValidate(TransactionXaAdapter.java:230)
at org.infinispan.transaction.xa.TransactionXaAdapter.commit(TransactionXaAdapter.java:116)
at org.infinispan.transaction.tm.DummyTransaction.runCommitTx(DummyTransaction.java:302)
at org.infinispan.transaction.tm.DummyTransaction.commit(DummyTransaction.java:84){code}
These are the result of the local transaction not being found amongst the registered transactions. If multiple transactions are using the same XID, this can easily be explained.
Finally, in the attached log, the other worrying thing is:
{code}2011-11-15 15:21:53,341 [pool-1-thread-1] WARN [org.infinispan.transaction.TransactionTable] ISPN000100: Stopping but there're transactions that did not finish in time: ....{code}
Basically, those are transactions being leaked which sometimes lead to OOMEs when running Radargun (at least in optimistic locking). There're a fair few places in the code from which transactions can be removed transaction table and at the moment there's no logging there, so it's hard to say which of those removals should have happened.
I'm attaching logs, XML configs...etc and will move on to test with a proper transaction manager.
--
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
13 years, 10 months
[JBoss JIRA] Created: (ISPN-1430) advancedCache.addInterceptorXYZ method don't inform the caller if the operation fails
by Mircea Markus (JIRA)
advancedCache.addInterceptorXYZ method don't inform the caller if the operation fails
-------------------------------------------------------------------------------------
Key: ISPN-1430
URL: https://issues.jboss.org/browse/ISPN-1430
Project: Infinispan
Issue Type: Feature Request
Components: Core API
Reporter: Mircea Markus
Assignee: Manik Surtani
Problem:
cache.getAdvancedCache().addInterceptorAfter(new ErrorInducingInterceptor(), NonTransactionalLockingInterceptor.class);
if NonTransactionalLockingInterceptor doesn't exist in the chain then the method return silently without informing the user that it didn't succeed. This is not API friendly.
Suggested solution: throw an exception to inform the user that his attempt is not correct.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months
[JBoss JIRA] (ISPN-1461) Undeploying an app using Infinispan raises a bunch of nasty logs
by Emmanuel Bernard (Created) (JIRA)
Undeploying an app using Infinispan raises a bunch of nasty logs
----------------------------------------------------------------
Key: ISPN-1461
URL: https://issues.jboss.org/browse/ISPN-1461
Project: Infinispan
Issue Type: Enhancement
Affects Versions: 5.0.1.FINAL
Reporter: Emmanuel Bernard
Assignee: Manik Surtani
Priority: Minor
{code}Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/tpcw] appears to have started a thread named [Listener:53848] but has failed to stop it. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/tpcw] appears to have started a thread named [Thread-14] but has failed to stop it. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/tpcw] appears to have started a thread named [Thread-15] but has failed to stop it. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@3d5831d9]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@6930bd05]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@7ec9c936]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@71b93941]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.batch.BatchContainer.BatchDetailsTl] (value [org.infinispan.batch.BatchContainer$BatchDetailsTl@1a31d63]) and a value of type [org.infinispan.batch.BatchContainer.BatchDetails] (value [org.infinispan.batch.BatchContainer$BatchDetails@7bde4f6b]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@40303955]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@1e041c5f]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1fe2b05e]) and a value of type [org.infinispan.context.impl.NonTxInvocationContext] (value [NonTxInvocationContext{flags=null}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.batch.BatchContainer.BatchDetailsTl] (value [org.infinispan.batch.BatchContainer$BatchDetailsTl@5ba8fbac]) and a value of type [org.infinispan.batch.BatchContainer.BatchDetails] (value [org.infinispan.batch.BatchContainer$BatchDetails@33230837]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@7ec9c936]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@40f06d1b]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.batch.BatchContainer.BatchDetailsTl] (value [org.infinispan.batch.BatchContainer$BatchDetailsTl@1a31d63]) and a value of type [org.infinispan.batch.BatchContainer.BatchDetails] (value [org.infinispan.batch.BatchContainer$BatchDetails@688b28eb]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@40303955]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@82b91ec]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1fe2b05e]) and a value of type [org.infinispan.context.impl.NonTxInvocationContext] (value [NonTxInvocationContext{flags=null}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.batch.BatchContainer.BatchDetailsTl] (value [org.infinispan.batch.BatchContainer$BatchDetailsTl@5ba8fbac]) and a value of type [org.infinispan.batch.BatchContainer.BatchDetails] (value [org.infinispan.batch.BatchContainer$BatchDetails@64792124]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@3d5831d9]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@4c6ef604]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@7ec9c936]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@8d9a7d0]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.batch.BatchContainer.BatchDetailsTl] (value [org.infinispan.batch.BatchContainer$BatchDetailsTl@1a31d63]) and a value of type [org.infinispan.batch.BatchContainer.BatchDetails] (value [org.infinispan.batch.BatchContainer$BatchDetails@9984d3a]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@40303955]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@6df61fc1]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1fe2b05e]) and a value of type [org.infinispan.context.impl.NonTxInvocationContext] (value [NonTxInvocationContext{flags=null}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.batch.BatchContainer.BatchDetailsTl] (value [org.infinispan.batch.BatchContainer$BatchDetailsTl@5ba8fbac]) and a value of type [org.infinispan.batch.BatchContainer.BatchDetails] (value [org.infinispan.batch.BatchContainer$BatchDetails@399ef04d]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Oct 17, 2011 7:01:27 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tpcw] created a ThreadLocal with key of type [org.infinispan.CacheImpl$1] (value [org.infinispan.CacheImpl$1@3d5831d9]) and a value of type [org.infinispan.CacheImpl.PreInvocationContext] (value [org.infinispan.CacheImpl$PreInvocationContext@71b26cc8]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
100000
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
Oct 17, 2011 7:01:28 PM org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/tpcw]{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
13 years, 10 months