You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Mario Ivanac (JIRA)" <ji...@apache.org> on 2019/04/15 07:56:00 UTC

[jira] [Created] (GEODE-6651) NPE for transaction read in partition regions with detectReadConflicts

Mario Ivanac created GEODE-6651:
-----------------------------------

             Summary: NPE for transaction read in partition regions with detectReadConflicts
                 Key: GEODE-6651
                 URL: https://issues.apache.org/jira/browse/GEODE-6651
             Project: Geode
          Issue Type: Bug
          Components: transactions
            Reporter: Mario Ivanac
             Fix For: 1.10.0


Hi, 

we are using transactional reads and setting detectReadConflicts to true to ensure Isolation, as it is described in Apache Geode documentation.

Only read operations are performed in transaction.

This is working properly for replicated region but not for partitioned region. In the case of partitioned region, when we do the transaction commit we get the following Exception:

terminate called after throwing an instance of 'apache::geode::client::Exception'
  what():  java.lang.NullPointerException
 at org.apache.geode.internal.cache.BucketRegion.getAdjunctReceivers(BucketRegion.java:1957)
 at org.apache.geode.internal.cache.TXState.attachFilterProfileInformation(TXState.java:566)
 at org.apache.geode.internal.cache.TXState.commit(TXState.java:478)
 at org.apache.geode.internal.cache.TXStateProxyImpl.commit(TXStateProxyImpl.java:209)
 at org.apache.geode.internal.cache.TXManagerImpl.commit(TXManagerImpl.java:409)
 at org.apache.geode.internal.cache.tier.sockets.command.CommitCommand.commitTransaction(CommitCommand.java:95)
 at org.apache.geode.internal.cache.tier.sockets.command.CommitCommand.cmdExecute(CommitCommand.java:83)
 at org.apache.geode.internal.cache.tier.sockets.BaseCommand.execute(BaseCommand.java:172)
 at org.apache.geode.internal.cache.tier.sockets.ServerConnection.doNormalMessage(ServerConnection.java:844)
 at org.apache.geode.internal.cache.tier.sockets.OriginalServerConnection.doOneMessage(OriginalServerConnection.java:74)
 at org.apache.geode.internal.cache.tier.sockets.ServerConnection.run(ServerConnection.java:1214)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at org.apache.geode.internal.cache.tier.sockets.AcceptorImpl.lambda$initializeServerConnectionThreadPool$3(AcceptorImpl.java:594)
 at org.apache.geode.internal.logging.LoggingThreadFactory.lambda$newThread$0(LoggingThreadFactory.java:121)
 at java.lang.Thread.run(Thread.java:748)

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)