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

refactor: clean cluster code #4707

Merged
merged 1 commit into from
Mar 6, 2025
Merged

refactor: clean cluster code #4707

merged 1 commit into from
Mar 6, 2025

Conversation

BorysTheDev
Copy link
Contributor

just clean cluster code a little

@BorysTheDev BorysTheDev requested a review from kostasrim March 5, 2025 13:24
cntx_.Reset(nullptr);
}
}

void SetLastError(dfly::GenericError err) ABSL_LOCKS_EXCLUDED(error_mu_) {
if (!err)
Copy link
Contributor

Choose a reason for hiding this comment

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

But if we call this then we have an error right ? Why would err be empty ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The error can be removed in another thread

@@ -217,7 +217,7 @@ bool IncomingSlotMigration::Join(long attempt) {
void IncomingSlotMigration::Stop() {
string_view log_state = state_.load() == MigrationState::C_FINISHED ? "Finishing" : "Cancelling";
LOG(INFO) << log_state << " incoming migration of slots " << slots_.ToString();
cntx_.ReportCancelError();
cntx_.Cancel();
Copy link
Contributor

Choose a reason for hiding this comment

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

This is cancellation without submitting an error the the underline context right ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, just forgot to replace it previous time

@BorysTheDev BorysTheDev merged commit 700d375 into main Mar 6, 2025
10 checks passed
@BorysTheDev BorysTheDev deleted the clean_cluster_code branch March 6, 2025 08:08
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.

None yet

2 participants