Skip to content

[server] Respect the option of table.log.ttl for local segments#3222

Open
zuston wants to merge 2 commits intoapache:mainfrom
zuston:logttl
Open

[server] Respect the option of table.log.ttl for local segments#3222
zuston wants to merge 2 commits intoapache:mainfrom
zuston:logttl

Conversation

@zuston
Copy link
Copy Markdown
Member

@zuston zuston commented Apr 28, 2026

Purpose

Enable TTL-expired local log segments to be rolled (bypass the limitation of num segment retained), while preserving a new empty active segment for future appends.

This PR is to reduce the partitioned log table bucket local storage capacity, especially longterm day level partition log table

Brief change log

  • Added active-segment TTL roll logic in LogTablet.
  • Trigger active-segment TTL roll before remote tiering selects upload candidates.
  • Added coverage for rolling, uploading, local cleanup, and subsequent appends after TTL.

Tests

API and Format

Documentation

@zuston zuston changed the title [server] Respect the option of 'table.log.ttl' for local segments [server] Respect the option of table.log.ttl for local segments Apr 28, 2026
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.

1 participant