Skip to content

Fix driver stuck on RecursionError on COMMIT SUCCESS - #1192

Merged
robsdedude merged 3 commits into
neo4j:6.xfrom
robsdedude:fix/driver-stuck-on-recursion-error-in-commit-success
May 28, 2025
Merged

Fix driver stuck on RecursionError on COMMIT SUCCESS#1192
robsdedude merged 3 commits into
neo4j:6.xfrom
robsdedude:fix/driver-stuck-on-recursion-error-in-commit-success

Conversation

@robsdedude

@robsdedude robsdedude commented May 20, 2025

Copy link
Copy Markdown
Member

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

@MaxAake MaxAake left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ 💬

Comment thread tests/unit/async_/io/_common/test_inbox.py
@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
@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