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

feat(meta): auto-clean expired keys #8539

Merged
merged 2 commits into from
Oct 31, 2022
Merged

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Oct 31, 2022

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

feat(meta): auto-clean expired keys

Changelog

Related Issues

@vercel
Copy link

vercel bot commented Oct 31, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
databend ⬜️ Ignored (Inspect) Oct 31, 2022 at 9:21AM (UTC)

@mergify mergify bot added the pr-feature this PR introduces a new feature to the codebase label Oct 31, 2022
@drmingdrmer drmingdrmer marked this pull request as ready for review October 31, 2022 01:58
- Clean upto 32 expired keys before applying a raft-log.

- When modifying(insert/update/delete) a kv record, it emits at most two event:
  - If the existent key expired, emit a `delete` event, because a
    expired key is seen and removed.
  - Then the event of the update follows.

- Fix: databendlabs#8489
- Fix: databendlabs#8490
- Fix: databendlabs#8540
@mergify mergify bot merged commit 357d565 into databendlabs:main Oct 31, 2022
@drmingdrmer drmingdrmer deleted the 80-expire branch October 31, 2022 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature this PR introduces a new feature to the codebase
Projects
None yet
3 participants