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

Change: remove defensive check utilities #761

Merged
merged 2 commits into from
Apr 11, 2023

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Apr 11, 2023

Changelog

Change: remove defensive check utilities

Most defensive checks are replaced with debug_assert! embedded in Engine.
StoreExt as a RaftStorage wrapper that implements defensive checks
are no longer needed. StoreExt are mainly used for testing and it is
very slow so that can not be used in production.

  • Remove structs: StoreExt, DefensiveStoreBuilder
  • Remove traits: Wrapper, DefensiveCheckBase, DefensiveCheck,

This change is Reviewable

Most defensive checks are replaced with `debug_assert!` embedded in Engine.
`StoreExt` as a `RaftStorage` wrapper that implements defensive checks
are no longer needed. `StoreExt` are mainly used for testing and it is
very slow so that can not be used in production.

- Remove structs: `StoreExt`, `DefensiveStoreBuilder`
- Remove traits: `Wrapper`, `DefensiveCheckBase`, `DefensiveCheck`,
… log entry

This bug causes replication tries to send pruged log.
@drmingdrmer drmingdrmer merged commit 8f597f6 into databendlabs:main Apr 11, 2023
@drmingdrmer drmingdrmer deleted the 40-refact branch April 11, 2023 17:03
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.

1 participant