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

refactor(mito): define manifest related API #1942

Merged
merged 5 commits into from
Jul 12, 2023

Conversation

waynexia
Copy link
Member

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

There are too many abstractions around manifest. They were needed when we had region manifest and table manifest. In #1869 we are going to merge these two manifests. By doing this the implementation can also be simplified. Major change:

  • trait Checkpoint -> struct RegionCheckpoint
  • trait MetaAction -> struct RegionMetaActionList
  • trait MetaActionIterator -> struct MetaActionIteratorImpl

The next step is to port manifest/region.rs and manifest/storage.rs

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

@waynexia waynexia requested review from v0y4g3r and evenyag July 12, 2023 03:19
Copy link
Contributor

@evenyag evenyag left a comment

Choose a reason for hiding this comment

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

Great. But where is your mermaid❓

Copy link
Contributor

@v0y4g3r v0y4g3r left a comment

Choose a reason for hiding this comment

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

LGTM, todo!() master 😅

@waynexia waynexia enabled auto-merge (squash) July 12, 2023 03:31
@waynexia
Copy link
Member Author

Great. But where is your mermaid❓

coming soon 🥲

@codecov
Copy link

codecov bot commented Jul 12, 2023

Codecov Report

Merging #1942 (43cd7ef) into develop (a751aa5) will decrease coverage by 0.57%.
The diff coverage is 15.16%.

@@             Coverage Diff             @@
##           develop    #1942      +/-   ##
===========================================
- Coverage    86.32%   85.76%   -0.57%     
===========================================
  Files          614      618       +4     
  Lines        99346    99557     +211     
===========================================
- Hits         85765    85386     -379     
- Misses       13581    14171     +590     

@waynexia waynexia merged commit 077785c into GreptimeTeam:develop Jul 12, 2023
@waynexia waynexia deleted the refactor-manifest branch July 12, 2023 03:44
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* refactor: port some manifest struct to mito2

Signed-off-by: Ruihang Xia <[email protected]>

* fix clippy and nextest

Signed-off-by: Ruihang Xia <[email protected]>

* revert lock file and resolve clippy warnings

Signed-off-by: Ruihang Xia <[email protected]>

---------

Signed-off-by: Ruihang Xia <[email protected]>
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.

3 participants