Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #59710

…owsets (#59710)

### What problem does this PR solve?

Related PR: #54395

Problem Summary:
When skip_writing_empty_rowset_metadata is enabled, empty rowsets are
not committed to meta-service. Previously,
set_txn_related_delete_bitmap() would either:
1. Store full rowset info in cache (causing memory leak since
sync_tablet_delete_bitmap_by_cache() never cleans it up), or
2. Skip storing entirely (causing CalcDeleteBitmapTask to fail with
NOT_FOUND error)

This fix introduces a lightweight marker mechanism:
- For empty rowsets, store only a TxnKey marker (~16 bytes) instead of
full rowset info
- CalcDeleteBitmapTask checks for marker via is_empty_rowset() and
returns success if found (marker is NOT removed to support task retry)
- Cleanup is handled by expiration-based removal in
remove_expired_tablet_txn_info()
- Expiration time is consistent with set_tablet_txn_info()
@github-actions github-actions bot requested a review from yiguolei as a code owner January 13, 2026 07:36
@Thearas
Copy link
Contributor

Thearas commented Jan 13, 2026

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@dataroaring dataroaring reopened this Jan 13, 2026
@Thearas
Copy link
Contributor

Thearas commented Jan 13, 2026

run buildall

@yiguolei yiguolei merged commit d202393 into branch-4.0 Jan 14, 2026
25 of 28 checks passed
@github-actions github-actions bot deleted the auto-pick-59710-branch-4.0 branch January 14, 2026 02:00
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.

5 participants