Skip to content

Conversation

@fbiville
Copy link
Contributor

@fbiville fbiville commented Jun 2, 2022

The LockClientStopped was misclassified as a transient error,
this has been fixed in https://github.com/neo-technology/neo4j/pull/15569

The `LockClientStopped` was misclassified as a transient error,
this has been fixed in neo-technology/neo4j#15569
@fbiville fbiville requested a review from robsdedude June 2, 2022 13:41
Copy link
Contributor

@robsdedude robsdedude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔨

@robsdedude
Copy link
Contributor

Judging by the failing pipelines here, there might be more error codes to adjust. Let me have a look.

@robsdedude
Copy link
Contributor

The four failing Python pipelines are to be expected. From my side, this PR can be merged.

@fbiville fbiville force-pushed the fix_tx_timeout_test branch from 762166b to 0a342ad Compare June 8, 2022 09:31
@fbiville
Copy link
Contributor Author

fbiville commented Jun 8, 2022

Rebased and fixed the leftovers

Comment on lines 159 to 165
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'>")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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")

Comment on lines 324 to 330
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'>")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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")

@fbiville fbiville force-pushed the fix_tx_timeout_test branch from 1e3ba35 to fc9a8d8 Compare June 9, 2022 12:00
exc = e.exception
if (exc.code
# TODO REMOVE THIS BLOCK ONCE ALL IMPLEMENT RETRYABLE EXCEPTIONS
if (get_driver_name() in ["javascript", "ruby", "python"]
Copy link
Contributor

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.

@bigmontz bigmontz force-pushed the fix_tx_timeout_test branch from fc55a06 to 05d17c9 Compare June 10, 2022 10:24
@bigmontz bigmontz merged commit 5a625dc into 5.0 Jun 10, 2022
@bigmontz bigmontz deleted the fix_tx_timeout_test branch June 10, 2022 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants