Skip to content

Fix driver stuck on RecursionError on COMMIT SUCCESS #1192

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

Conversation

robsdedude
Copy link
Member

@robsdedude robsdedude commented May 20, 2025

The driver could get stuck when the result summary was so deeply nested that it caused an RecursionError. It would also get stuck on certain protocol violations in the same place (e.g., unknown PackStream tag). However, the latter is much more unlikely to occur.

This patch will make the driver ditch the connection when it's not able to properly read a message for unexpected reasons and let the error bubble up.

The driver could get stuck when the result summary was so deeply nested that it
caused an `RecursionError`. It would also get stuck on certain protocol
violations in the same place (e.g., unknown PackStream tag). However, the
latter is much more unlikely to occur.

This patch will make the driver ditch the connection when it's not able to
properly read a message for unexpected reasons.
@robsdedude robsdedude force-pushed the fix/driver-stuck-on-recursion-error-in-commit-success branch from 58481ce to 1c5bc65 Compare May 20, 2025 12:35
@robsdedude robsdedude changed the title Fix driver stuck RecursionError in COMMIT SUCCESS Fix driver stuck on RecursionError on COMMIT SUCCESS May 20, 2025
Copy link
Contributor

@MaxAake MaxAake left a comment

Choose a reason for hiding this comment

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

✅ 💬

@robsdedude robsdedude enabled auto-merge (squash) May 28, 2025 16:09
@robsdedude robsdedude disabled auto-merge May 28, 2025 16:09
@robsdedude robsdedude enabled auto-merge (squash) May 28, 2025 16:09
@robsdedude robsdedude merged commit a32e403 into neo4j:6.x May 28, 2025
20 checks passed
@robsdedude robsdedude deleted the fix/driver-stuck-on-recursion-error-in-commit-success branch May 28, 2025 17:01
robsdedude added a commit that referenced this pull request Jun 5, 2025
robsdedude added a commit that referenced this pull request Jun 5, 2025
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.

2 participants