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

fix: Do not use cc_ in connection if it's null #4131

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

chakaz
Copy link
Collaborator

@chakaz chakaz commented Nov 14, 2024

This is a rare condition, which we know can happen during shutdown (see here)

Hopefully fixes #3776 but we couldn't reproduce it to make sure.

This is a rare condition, which we know can happen during shutdown (see
[here](#3873 (comment)))
@chakaz chakaz requested a review from adiholden November 14, 2024 09:30
@@ -1428,20 +1428,24 @@ std::string Connection::DebugInfo() const {

absl::StrAppend(&info, "address=", uint64_t(this), ", ");
absl::StrAppend(&info, "phase=", phase_, ", ");
absl::StrAppend(&info, "dispatch(s/a)=", cc_->sync_dispatch, " ", cc_->async_dispatch, ", ");
absl::StrAppend(&info, "closing=", cc_->conn_closing, ", ");
if (cc_) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe add a comment about this rare condition.

@chakaz chakaz merged commit f04e549 into main Nov 14, 2024
12 checks passed
@chakaz chakaz deleted the chakaz/replica-takeover-crash branch November 14, 2024 10:41
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.

test failed replication_test.py::test_take_over_counters
2 participants