Skip to content
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

CXXCBC-328: fix restarting MCBP sessions #406

Merged
merged 11 commits into from May 23, 2023

Conversation

avsej
Copy link
Member

@avsej avsej commented May 10, 2023

Instead of letting session restarting itself, only allow it to removed itself from the bucket. And in the end, just notify the bucket to check configuration and establish connections to the endpoints that don't have it yet.

@avsej avsej force-pushed the CXXCBC-328-fix-restarting-sessions branch from 42d9207 to 211d2d2 Compare May 11, 2023 13:54
@avsej avsej force-pushed the CXXCBC-328-fix-restarting-sessions branch 3 times, most recently from 19583d8 to bd4061b Compare May 18, 2023 06:31
@avsej avsej force-pushed the CXXCBC-328-fix-restarting-sessions branch 6 times, most recently from e0a6a37 to c9cb230 Compare May 22, 2023 04:07
avsej added 9 commits May 22, 2023 19:37
Instead of letting session restarting itself, only allow it to removed
itself from the bucket. And in the end, just notify the bucket to check
configuration and establish connections to the endpoints that don't have
it yet.
* calculate diff of node lists taking into account active network
  (external/internal)

* do not use indexes to decide whether the session should be preserved
  or closed. Instead just iterate and match existing connections using
  their bootstrap addresses.

* tolerate auth errors during bootstrap, if the bootstrap list is not
  exhausted. Ejected nodes might still be available, but fail to
  authenticate, we should just try next in the list.

* always swap bytes for opaque for log readability
@avsej avsej force-pushed the CXXCBC-328-fix-restarting-sessions branch from c9cb230 to a7d8c0f Compare May 22, 2023 16:37
avsej added 2 commits May 22, 2023 22:28
doing that will allow to restart the session, and it will not stuck in
stopped state leading to timeouts
Copy link
Contributor

@thejcfactor thejcfactor left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@avsej avsej merged commit adc416d into couchbaselabs:main May 23, 2023
13 of 14 checks passed
@avsej avsej deleted the CXXCBC-328-fix-restarting-sessions branch May 23, 2023 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants