Skip to content

Conversation

@bigmontz
Copy link
Contributor

@bigmontz bigmontz commented May 21, 2021

The error issue happened because the cursor failure is already the cause of the commit or rollback failure. This generates a circular reference when both of the exceptions are combined.

This situation can create stack overflow when the exception is logged in some logging libraries.

The solution don't add the cursor exception as the cause of the exception, this way it will not be wrongly combined creating a circular reference.

@injectives injectives self-requested a review May 22, 2021 10:11
@bigmontz bigmontz force-pushed the 4.3-fix-semantic-error-endless-recursion branch from a97d6ec to 7bc3b5e Compare May 25, 2021 11:12
The error issue happened because the cursor failure is already the cause of the commit or rollback failure. This generates a circular reference when both of the exceptions are combined.

This situation can create stack overflow when the exception is logged in some logging libraries.

The solution don't add the cursor exception as the cause of the exception, this way it will not be wrongly combined creating a circular reference.
@bigmontz bigmontz force-pushed the 4.3-fix-semantic-error-endless-recursion branch from 7bc3b5e to 7cb0359 Compare May 25, 2021 11:49
@bigmontz bigmontz changed the title Remove circular references in exceptions generated by client errors the Async Driver Remove circular references in exceptions during the commit May 25, 2021
@injectives injectives self-requested a review May 25, 2021 12:16
Copy link
Contributor

@injectives injectives left a comment

Choose a reason for hiding this comment

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

LGTM

@bigmontz bigmontz merged commit 2ac1a6a into neo4j:4.3 May 25, 2021
@bigmontz bigmontz deleted the 4.3-fix-semantic-error-endless-recursion branch May 25, 2021 12:56
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.

[Bug] Error construction leads to StackOverflowException when logging it

2 participants