[JBoss JIRA] (ISPN-8853) Registering interposed synchronization fails in async operation with implicit transaction
by Radim Vansa (JIRA)
Radim Vansa created ISPN-8853:
---------------------------------
Summary: Registering interposed synchronization fails in async operation with implicit transaction
Key: ISPN-8853
URL: https://issues.jboss.org/browse/ISPN-8853
Project: Infinispan
Issue Type: Bug
Components: Core, Transactions
Affects Versions: 9.2.0.CR2
Reporter: Radim Vansa
{{TransactionTable.enlist}} calls {{transactionSynchronizationRegistry.registerInterposedSynchronization(sync);}} but when an async operation is invoked with implicit transaction, the thread-local transaction is suspended. That can result in
{code}
java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
at org.jboss.as.txn.service.internal.tsr.TransactionSynchronizationRegistryWrapper.registerInterposedSynchronization(TransactionSynchronizationRegistryWrapper.java:69)
{code}
I guess that since {{TransactionSynchronizationRegistry}} does not offer a variant that would accept the transaction as parameter we need to wrap the call with resume & suspend.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (ISPN-8851) Make creating remote caches out of XML more user friendly
by Galder Zamarreño (JIRA)
Galder Zamarreño created ISPN-8851:
--------------------------------------
Summary: Make creating remote caches out of XML more user friendly
Key: ISPN-8851
URL: https://issues.jboss.org/browse/ISPN-8851
Project: Infinispan
Issue Type: Bug
Components: JMX, reporting and management, Remote Protocols
Affects Versions: 9.2.0.CR2
Reporter: Galder Zamarreño
When it comes to the XML to use to create a cache remotely, we should be able to do just this:
{code}
createCache("my-cache", "<local-cache />");
{code}
There are a couple of issues with this right now:
1. You need to pass in {{<infinispan><cache-container>...</cache-container></infinispan>}}
2. The cache in the XML needs a name. This should be needed. The name of the cache is already given as 1st parameter to {{createCache}} and others. In fact, probably any cache name in the XML itself (since it's a valid attribute), should be ignored.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month