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

A DB upgrade that cleans erroneous health info from the DB #7322

Merged

Conversation

kozlovsky
Copy link
Contributor

This DB upgrade finishes #7295 by cleaning incorrect records from the DB

@kozlovsky kozlovsky force-pushed the fix/upgrade_clean_self_checked_health branch 3 times, most recently from fce403a to 06e8331 Compare March 16, 2023 12:15
@kozlovsky kozlovsky marked this pull request as ready for review March 16, 2023 12:34
@kozlovsky kozlovsky requested review from a team, xoriole and drew2a and removed request for a team March 16, 2023 12:34
mds_path = self.state_dir / STATEDIR_DB_DIR / 'metadata.db'

mds = MetadataStore(mds_path, self.channels_dir, self.primary_key, disable_sync=True,
check_tables=False, db_version=13) if mds_path.exists() else None
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the db_version be 14 here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, thanks! Usually this value does not affect the upgrade process, so I missed it

@kozlovsky kozlovsky force-pushed the fix/upgrade_clean_self_checked_health branch from 06e8331 to 51c111e Compare March 16, 2023 13:01
src/tribler/core/upgrade/tests/test_upgrader.py Outdated Show resolved Hide resolved
src/tribler/core/upgrade/tests/test_upgrader.py Outdated Show resolved Hide resolved
src/tribler/core/upgrade/tests/test_upgrader.py Outdated Show resolved Hide resolved
@kozlovsky kozlovsky force-pushed the fix/upgrade_clean_self_checked_health branch 3 times, most recently from b6ba516 to 58fa675 Compare March 16, 2023 14:39
@kozlovsky kozlovsky force-pushed the fix/upgrade_clean_self_checked_health branch from 58fa675 to d7d8eea Compare March 16, 2023 14:49
@drew2a drew2a mentioned this pull request Mar 16, 2023
@kozlovsky kozlovsky force-pushed the fix/upgrade_clean_self_checked_health branch from d7d8eea to 88ad1f5 Compare March 16, 2023 16:37
@kozlovsky kozlovsky merged commit 81eb249 into Tribler:main Mar 16, 2023
@kozlovsky kozlovsky deleted the fix/upgrade_clean_self_checked_health branch March 16, 2023 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants