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!: compare with origin bytes during the transactions #2538

Merged

Conversation

WenyXu
Copy link
Member

@WenyXu WenyXu commented Oct 8, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

  1. Wrap values with DeserializedValueWithBytes struct.
  2. Compare with origin bytes during the transactions

This PR modifies the persistent structs used in meta's procedures, ensuring all old procedures are finished before starting a new version of metasrv.

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)

close #2198

@WenyXu WenyXu changed the title refactor: compare with origin bytes during the transactions refactor!: compare with origin bytes during the transactions Oct 8, 2023
@WenyXu WenyXu added the breaking-change This pull request contains breaking changes. label Oct 8, 2023
@codecov
Copy link

codecov bot commented Oct 8, 2023

Codecov Report

Merging #2538 (f6a02fe) into develop (ce3c10a) will decrease coverage by 0.37%.
The diff coverage is 92.11%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2538      +/-   ##
===========================================
- Coverage    85.34%   84.98%   -0.37%     
===========================================
  Files          737      737              
  Lines       117409   117561     +152     
===========================================
- Hits        100206    99911     -295     
- Misses       17203    17650     +447     

@WenyXu WenyXu force-pushed the refactor/use-remote-bytes branch from be4c6fa to 06c14b2 Compare October 8, 2023 09:46
Copy link
Collaborator

@fengjiachun fengjiachun left a comment

Choose a reason for hiding this comment

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

LGTM

src/common/meta/src/key.rs Outdated Show resolved Hide resolved
src/common/meta/src/key.rs Show resolved Hide resolved
src/common/meta/src/key.rs Show resolved Hide resolved
src/common/meta/src/key.rs Show resolved Hide resolved
src/common/meta/src/key.rs Outdated Show resolved Hide resolved
src/common/meta/src/key/table_info.rs Outdated Show resolved Hide resolved
@WenyXu WenyXu force-pushed the refactor/use-remote-bytes branch 5 times, most recently from b32f05b to d057b49 Compare October 9, 2023 05:34
@WenyXu
Copy link
Member Author

WenyXu commented Oct 9, 2023

@MichaelScofield PTAL

@WenyXu WenyXu force-pushed the refactor/use-remote-bytes branch from d057b49 to f6a02fe Compare October 9, 2023 05:55
@MichaelScofield MichaelScofield added this pull request to the merge queue Oct 9, 2023
Merged via the queue into GreptimeTeam:develop with commit 81ccb58 Oct 9, 2023
13 checks passed
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
…eTeam#2538)

* refactor: compare with origin bytes during the transaction

* refactor: use serialize_str instead

* Update src/common/meta/src/key.rs

Co-authored-by: JeremyHi <[email protected]>

* chore: apply suggestions from CR

---------

Co-authored-by: JeremyHi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change This pull request contains breaking changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using the remote bytes the instead of the serialized bytes during the transaction
3 participants