New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GEODE-8480: Add txmanager check in tx example #648
Conversation
Did you find an issue that was fixed by this? What is the repro case? Can we add a simple test that shows the problem? The changes look fine, but it's difficult to judge correctness or whether there's a product issue since it doesn't modify any product code. |
I was running a test consisting on killing a Geode server while a C++ client with several threads was executing transactions. I observed that most of the times, the client died after killing the server with following error in logs:
I was not sure about what was happening, but I had the feeling that I was doing something wrong, because I would not expect that the client was dying in this scenario. When I was taking a look at the transaction page in the Geode documentation, I realized that in Java, the transaction example includes the call to the
I added the call to the function to my C++ client and the problem was solved. After that the client was showing some exceptions when one of the server was killed, but the client was not dying. So I felt that calling to this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a test that reproduces the problem, if you can. If it's too much work, file a separate Jira work item for the test and I'll approve/merge this. Thanks!
Dont worry, I think its not needed to split this in two different tickets, I will try to write a test when I find time. Im moving this PR to draft in the meanwhile. |
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:
But after changing the code to call |
00278b0
to
b824345
Compare
PR rebased to fix conflict with |
Codecov Report
@@ Coverage Diff @@
## develop #648 +/- ##
===========================================
+ Coverage 73.95% 74.21% +0.26%
===========================================
Files 644 644
Lines 51132 51132
===========================================
+ Hits 37813 37948 +135
+ Misses 13319 13184 -135
Continue to review full report at Codecov.
|
No description provided.