Skip to content

Conversation

@avsej
Copy link
Member

@avsej avsej commented Nov 4, 2025

No description provided.

@avsej avsej marked this pull request as draft November 4, 2025 02:27
@avsej avsej marked this pull request as ready for review November 4, 2025 17:04
@avsej avsej changed the title Lazy connections CXXCLazy connections Nov 4, 2025
@avsej avsej changed the title CXXCLazy connections CXXCBC-745: Lazy connections Nov 4, 2025
Copy link
Contributor

@Matt-Woz Matt-Woz left a comment

Choose a reason for hiding this comment

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

Looks good to me, but may be good to have another pair of eyes on this too

Do not rush to open KV connections after the first configuration has
been received. Instead wait for the first operation that would be
mapped to the socket.
session.has_value() ? session->bootstrap_address() : "",
session.has_value() && session->has_config(),
config_rev());
if (!session) {
Copy link
Contributor

@thejcfactor thejcfactor Nov 10, 2025

Choose a reason for hiding this comment

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

If lazy connections are not enabled, we want to defer the command still, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

@thejcfactor right, we always defer the command. This change just ensures that the connection exist or pending.

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