-
Notifications
You must be signed in to change notification settings - Fork 12
Fix error category #466
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
Fix error category #466
Conversation
The `LockClientStopped` was misclassified as a transient error, this has been fixed in neo-technology/neo4j#15569
robsdedude
left a comment
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.
🔨
|
Judging by the failing pipelines here, there might be more error codes to adjust. Let me have a look. |
|
The four failing Python pipelines are to be expected. From my side, this PR can be merged. |
762166b to
0a342ad
Compare
|
Rebased and fixed the leftovers |
Co-authored-by: Florent Biville <[email protected]>
tests/neo4j/test_session_run.py
Outdated
| if get_driver_name() in ["javascript", "ruby", "python"]: | ||
| self.assertEqual( | ||
| e.exception.code, | ||
| "Neo.TransientError.Transaction.LockClientStopped") | ||
| "Neo.ClientError.Transaction.LockClientStopped") | ||
| if get_driver_name() in ["python"]: | ||
| self.assertEqual(e.exception.errorType, | ||
| "<class 'neo4j.exceptions.TransientError'>") |
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.
| if get_driver_name() in ["javascript", "ruby", "python"]: | |
| self.assertEqual( | |
| e.exception.code, | |
| "Neo.TransientError.Transaction.LockClientStopped") | |
| "Neo.ClientError.Transaction.LockClientStopped") | |
| if get_driver_name() in ["python"]: | |
| self.assertEqual(e.exception.errorType, | |
| "<class 'neo4j.exceptions.TransientError'>") | |
| if get_driver_name() in ["javascript", "ruby"]: | |
| self.assertEqual( | |
| e.exception.code, | |
| "Neo.ClientError.Transaction.LockClientStopped") |
tests/neo4j/test_tx_run.py
Outdated
| if get_driver_name() in ["javascript", "ruby", "python"]: | ||
| self.assertEqual( | ||
| e.exception.code, | ||
| "Neo.TransientError.Transaction.LockClientStopped") | ||
| "Neo.ClientError.Transaction.LockClientStopped") | ||
| if get_driver_name() in ["python"]: | ||
| self.assertEqual(e.exception.errorType, | ||
| "<class 'neo4j.exceptions.TransientError'>") |
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.
| if get_driver_name() in ["javascript", "ruby", "python"]: | |
| self.assertEqual( | |
| e.exception.code, | |
| "Neo.TransientError.Transaction.LockClientStopped") | |
| "Neo.ClientError.Transaction.LockClientStopped") | |
| if get_driver_name() in ["python"]: | |
| self.assertEqual(e.exception.errorType, | |
| "<class 'neo4j.exceptions.TransientError'>") | |
| if get_driver_name() in ["javascript", "ruby"]: | |
| self.assertEqual( | |
| e.exception.code, | |
| "Neo.ClientError.Transaction.LockClientStopped") |
1e3ba35 to
fc9a8d8
Compare
tests/neo4j/test_tx_func_run.py
Outdated
| exc = e.exception | ||
| if (exc.code | ||
| # TODO REMOVE THIS BLOCK ONCE ALL IMPLEMENT RETRYABLE EXCEPTIONS | ||
| if (get_driver_name() in ["javascript", "ruby", "python"] |
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.
May I suggest to not put Ruby in there? Once the community driver implements the 5.0 changes, I think it should be notified of this required change through a failing pipeline.
fc55a06 to
05d17c9
Compare
Co-authored-by: Florent Biville <[email protected]>
The
LockClientStoppedwas misclassified as a transient error,this has been fixed in https://github.com/neo-technology/neo4j/pull/15569