[ 
https://issues.apache.org/jira/browse/GEODE-8480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17202148#comment-17202148
 ] 

ASF GitHub Bot commented on GEODE-8480:
---------------------------------------

alb3rtobr commented on pull request #648:
URL: https://github.com/apache/geode-native/pull/648#issuecomment-698608233


   There you are a test that shows the problem. I have divided the code in two 
commits. In the first one, the test fails with the following error:
   
   ```
   $ ctest -R TransactionsTest -j1
   Test project 
/home/alb3rtobr/CLionProjects/Nordix/geode-native/build/cppcache/integration/test
       Start 61: TransactionsTest.ExceptionWhenRollingBackTx
   1/1 Test #61: TransactionsTest.ExceptionWhenRollingBackTx ...***Exception: 
Child aborted 21.41 sec
   
   0% tests passed, 1 tests failed out of 1
   
   Total Test time (real) =  23.72 sec
   
   The following tests FAILED:
         61 - TransactionsTest.ExceptionWhenRollingBackTx (Child aborted)
   Errors while running CTest
   ```
   
   But after changing the code to call `transactionManager->exists()` before 
executing the rollback (the second commit), the test case works fine.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Add tx manager check in geode-native transaction example
> --------------------------------------------------------
>
>                 Key: GEODE-8480
>                 URL: https://issues.apache.org/jira/browse/GEODE-8480
>             Project: Geode
>          Issue Type: Improvement
>          Components: docs, native client
>            Reporter: Alberto Bustamante Reyes
>            Assignee: Alberto Bustamante Reyes
>            Priority: Minor
>              Labels: pull-request-available
>
> Transactions documentation & example in the geode C++ client is not checking 
> if the transaction manager exists before calling to rollback, as it is done 
> in the transactions documentation and example in geode.
> I have seen that depending on the exception, the rollback can generate an 
> error so I think its something that should be added to the example.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to