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

[Bifrost] GetDigest message in replicated loglets #2042

Merged
merged 1 commit into from
Oct 9, 2024
Merged

Conversation

AhmedSoliman
Copy link
Contributor

@AhmedSoliman AhmedSoliman commented Oct 8, 2024

Digest as a summary of offset-range presence on a certain node. A a new request message GetDigest is introduced to the log-server to allow an efficient scanning of a range of offsets to check which offsets reside on this server. This process will be used as part of the tail repair to determine (a) whether a record meets the replication requirements and (b) where to fetch a certain record if we need to re-replicate.


Stack created with Sapling. Best reviewed with ReviewStack.

Copy link

github-actions bot commented Oct 8, 2024

Test Results

  5 files  ±0    5 suites  ±0   2m 47s ⏱️ +5s
 45 tests ±0   45 ✅ ±0  0 💤 ±0  0 ❌ ±0 
114 runs  ±0  114 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 56e9aca. ± Comparison against base commit af23d42.

♻️ This comment has been updated with latest results.

@AhmedSoliman AhmedSoliman changed the title [WIP] Digest [Bifrost] GetDigest message in replicated loglets Oct 8, 2024
@AhmedSoliman AhmedSoliman marked this pull request as ready for review October 8, 2024 12:21
@AhmedSoliman AhmedSoliman force-pushed the pr2042 branch 2 times, most recently from a37dee8 to e2f847c Compare October 8, 2024 12:37
crates/log-server/src/loglet_worker.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

Thanks for creating this PR @AhmedSoliman. Stellar work, as always. LGTM. +1 for merging.

crates/types/src/net/log_server.rs Outdated Show resolved Hide resolved
Digest as a summary of offset-range presence on a certain node. A a new request message `GetDigest` is introduced to the log-server to allow an efficient scanning of a range of offsets to check which offsets reside on this server. This process will be used as part of the tail repair to determine (a) whether a record meets the replication requirements and (b) where to fetch a certain record if we need to re-replicate.
@AhmedSoliman AhmedSoliman merged commit 56e9aca into main Oct 9, 2024
17 checks passed
@AhmedSoliman AhmedSoliman deleted the pr2042 branch October 9, 2024 14:54
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