Skip to content

New timeout config options [ADR 006] #745

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

Merged

Conversation

robsdedude
Copy link
Member

@robsdedude robsdedude commented Jun 13, 2022

Amends #675

Implements ADR 006 (internal reference)

@robsdedude robsdedude force-pushed the connection-acquisition-timeout-routing branch from a805f38 to 07f8bb2 Compare June 20, 2022 09:22
@robsdedude robsdedude force-pushed the connection-acquisition-timeout-routing branch from 07f8bb2 to 43ddb35 Compare June 20, 2022 11:33
robsdedude added a commit to robsdedude/neo4j-python-driver that referenced this pull request Jun 22, 2022
robsdedude added a commit to robsdedude/neo4j-python-driver that referenced this pull request Jun 22, 2022
@robsdedude robsdedude force-pushed the connection-acquisition-timeout-routing branch from 32d6de1 to 56b7b53 Compare June 22, 2022 12:53
robsdedude added a commit to robsdedude/neo4j-python-driver that referenced this pull request Jun 22, 2022
@robsdedude robsdedude changed the title Include more routing and more in connection_acquisition_timeout New timeout config options [ADR 006] Jun 23, 2022
@robsdedude
Copy link
Member Author

Stub tests are expected to fail because of the UTC fix not being implemented in the Driver yet.

database_callback=self._set_cached_database
)
acquire_kwargs_ = {
"access_mode": access_mode,
"timeout": self._config.connection_acquisition_timeout,
"timeout": timeout,
Copy link
Contributor

Choose a reason for hiding this comment

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

It feels a bit strange to figure out what is happen here, because of the timeout field being filled with a Deadline. It's not a major issue, since the code knows how to handle it.

Copy link
Contributor

@bigmontz bigmontz 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 force-pushed the connection-acquisition-timeout-routing branch from ac6ded7 to 4f8190d Compare June 27, 2022 07:47
@robsdedude robsdedude force-pushed the connection-acquisition-timeout-routing branch from 4f8190d to 74b06ee Compare June 27, 2022 08:05
@robsdedude
Copy link
Member Author

multi-db Integration tests with 5.0 are failing because the async nature of db management procedure changed (neo4j-drivers/testkit#484) -> unrelated to this change.

@robsdedude robsdedude merged commit 165d783 into neo4j:5.0 Jun 28, 2022
robsdedude added a commit that referenced this pull request Jun 28, 2022
* Backport new connection timeout config options
  Backport of #745
@robsdedude robsdedude deleted the connection-acquisition-timeout-routing branch June 28, 2022 07:02
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.

3 participants