Skip to content

populate local_metadata after agent has been initialized#5783

Merged
deepthi merged 2 commits intovitessio:masterfrom
planetscale:ds-local-metadata
Feb 7, 2020
Merged

populate local_metadata after agent has been initialized#5783
deepthi merged 2 commits intovitessio:masterfrom
planetscale:ds-local-metadata

Conversation

@deepthi
Copy link
Copy Markdown
Collaborator

@deepthi deepthi commented Feb 1, 2020

Fixes #5780.
Since -restore_from_backup populates local_metadata regardless of the value of -init_populate_metadata , we decided to not make it a fatal error if both flags are set.
Instead, the logic to populate local_metadata has been moved to the correct place (out of InitTablet) so that things work correctly if both flags are specified.

Note that we have chosen not to change the behavior of metadata_tables if -init_populate_metadata is false in the presence of -restore_from_backup because doing so would break backwards compatibility.

cc @guidoiaquinti

Signed-off-by: deepthi deepthi@planetscale.com

@deepthi deepthi requested a review from sougou as a code owner February 1, 2020 16:17
@deepthi deepthi changed the title populate metadata after agent has been initialized populate local_metadata after agent has been initialized Feb 1, 2020
Signed-off-by: deepthi <deepthi@planetscale.com>
@deepthi deepthi requested a review from enisoc February 1, 2020 16:18
…metadata

Signed-off-by: deepthi <deepthi@planetscale.com>
@deepthi
Copy link
Copy Markdown
Collaborator Author

deepthi commented Feb 7, 2020

@enisoc ready for re-review.

Copy link
Copy Markdown
Member

@enisoc enisoc left a comment

Choose a reason for hiding this comment

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

LGTM

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.

[vttablet] -init_populate_metadata and -restore_from_backup shouldn't be used together

2 participants