-
Notifications
You must be signed in to change notification settings - Fork 332
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
feat: region manifest checkpoint #1202
feat: region manifest checkpoint #1202
Conversation
74227b5
to
76eb90c
Compare
76eb90c
to
f0d5163
Compare
Codecov Report
@@ Coverage Diff @@
## develop #1202 +/- ##
===========================================
- Coverage 85.34% 84.95% -0.39%
===========================================
Files 494 495 +1
Lines 72513 72949 +436
===========================================
+ Hits 61888 61977 +89
- Misses 10625 10972 +347 |
Co-authored-by: Ruihang Xia <waynestxia@gmail.com>
Co-authored-by: Ruihang Xia <waynestxia@gmail.com>
Co-authored-by: Ruihang Xia <waynestxia@gmail.com>
Co-authored-by: Ruihang Xia <waynestxia@gmail.com>
@waynexia PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@evenyag PTAL, thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* chore: adds log when manifest protocol is changed * chore: refactor region manifest * temp commit * feat: impl region manifest checkpoint * feat: recover region version from manifest snapshot * test: adds region snapshot test * test: region manifest checkpoint * test: alter region with manifest checkpoint * fix: revert storage api * feat: delete old snapshot * refactor: manifest log storage * Update src/storage/src/version.rs Co-authored-by: Ruihang Xia <waynestxia@gmail.com> * Update src/storage/src/manifest/checkpoint.rs Co-authored-by: Ruihang Xia <waynestxia@gmail.com> * Update src/storage/src/manifest/region.rs Co-authored-by: Ruihang Xia <waynestxia@gmail.com> * Update src/storage/src/manifest/region.rs Co-authored-by: Ruihang Xia <waynestxia@gmail.com> * chore: by CR comments * refactor: by CR comments * fix: typo * chore: tweak start_version --------- Co-authored-by: Ruihang Xia <waynestxia@gmail.com>
I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
Impl region manifest checkpoint #170 . It compacts manifest actions and creates a snapshot for them. It will reduce disk consumption and speed up region recovery.
Main changes:
RegionManifestData
andRegionSnapshot
etc. Please refer tosrc/storage/src/manifest/action.rs
.Checkpointer
trait and adds it intoManifestImpl
.RegionManifestCheckpointer
to do checkpointing for region manifest. When saving manifest actions every ten times, it will try to do a checkpoint.Checklist
Refer to a related PR or issue link (optional)
#170