Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implement GetServerInfo Handler with Routing Validation Fix and Full Testkit Integration #276

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

Open
p123-stack wants to merge 4 commits into feat/tesktkit-bookmarks
base: feat/tesktkit-bookmarks
Choose a base branch
Loading
from feat/configuration_hints

Conversation

@p123-stack
Copy link
Collaborator

@p123-stack p123-stack commented Oct 10, 2025

Hello @transistive 👋

I’ve prepared a detailed overview of all the architectural and functional changes included in this PR.

GetServerInfo End-to-End Implementation

  • Implemented complete GetServerInfo flow across the Neo4j PHP Client and Testkit backend.

  • Added getServerInfo() method in BoltDriver, Neo4jDriver, and DriverInterface.

  • Integrated full driver → connection → backend response chain.

  • Extracted server metadata from live connections for accurate reporting.

  • Provides consistent driver information for Testkit compliance.

Routing Table Validation & Bug Fix

  • Fixed critical issue where missing readers in the routing table caused connection failures.

  • Added routing table validation and fallback handling for clustered environments.

  • Ensures Neo4jDriver refreshes routing tables before establishing new connections.

  • Returns proper DriverError when no readers are available.

  • Aligned behavior with Neo4j’s routing protocol specification.

Connection & Pool Enhancements

  • Enhanced BoltConnection with improved error handling and metadata tracking.

  • Updated Neo4jConnectionPool to refresh and validate routing information before acquiring connections.

  • Improved connection reuse and cleanup across sessions.

  • Ensures stable connection lifecycle management and consistent server state retrieval.

Session Management Improvements

  • Session::close() now discards unconsumed results for proper cleanup.

  • Improved session consistency during concurrent or retried operations.

  • Ensures stable and predictable session behavior across driver invocations.

...Testkit
- Enables retrieval of server information via the GetServerInfo request
...PHP Client and Testkit backend. This includes full request/response handling, driver integration, and a critical fix for routing table validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /