Skip to content

feat: add migrated keys statistic #5043

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BorysTheDev
Copy link
Contributor

fixes: #5017

@@ -240,6 +244,10 @@ void OutgoingMigration::SyncFb() {
OnAllShards([this](auto& migration) {
DbSlice& db_slice = namespaces->GetDefaultNamespace().GetCurrentDbSlice();
server_family_->journal()->StartInThread();

if (migration) // update stats after fail
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that if we fail we should not update this count
It will be clear in monitor to see a drop which means that the migration restarted

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@romange told me that we want to see the progress even with failed attempts

@BorysTheDev BorysTheDev force-pushed the add_migrated_keys_stats branch from 4213f15 to 7e1cf1f Compare May 5, 2025 06:43
@BorysTheDev BorysTheDev force-pushed the add_migrated_keys_stats branch from 7e1cf1f to e632295 Compare May 5, 2025 06:46
@BorysTheDev BorysTheDev requested review from romange and adiholden May 5, 2025 06:47
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.

Add statistic to show total number of keys migrated
3 participants