Skip to content

Conversation

p123-stack
Copy link
Collaborator

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.
…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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant