Skip to content

refactor: add IdempotentKVTxnSender - #18585

Merged
bohutang merged 3 commits into
databendlabs:mainfrom
dantengsky:feat-IdempotentKVTxnSender
Aug 23, 2025
Merged

refactor: add IdempotentKVTxnSender#18585
bohutang merged 3 commits into
databendlabs:mainfrom
dantengsky:feat-IdempotentKVTxnSender

Conversation

@dantengsky

@dantengsky dantengsky commented Aug 22, 2025

Copy link
Copy Markdown
Member

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

Summary

Add IdempotentKVTxnSender

  • make kv txn of commit_table_meta idempotent
  • refactor update_multi_table_meta and create_lock_revision by using IdempotentKVTxnSender

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - using exist tests

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature that could cause existing functionality not to work as expected)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

This change is Reviewable

- make kv txn of `commit_table_meta` idempotent
- refactor `update_multi_table_meta` and `create_lock_revision`
  by using IdempotentKVTxnSender
@github-actions github-actions Bot added the pr-refactor this PR changes the code base without new features or bugfix label Aug 22, 2025
@dantengsky
dantengsky force-pushed the feat-IdempotentKVTxnSender branch from e74da9f to 0c76d1a Compare August 22, 2025 16:05
@dantengsky
dantengsky force-pushed the feat-IdempotentKVTxnSender branch from 0c76d1a to a2ad6e1 Compare August 22, 2025 16:11
@dantengsky
dantengsky marked this pull request as ready for review August 23, 2025 03:10

@drmingdrmer drmingdrmer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's a nice refinement and abstraction. Thank you!

@drmingdrmer reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @zhyass)

@bohutang
bohutang merged commit 0811612 into databendlabs:main Aug 23, 2025
536 of 576 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-refactor this PR changes the code base without new features or bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants