Skip to content

[fix](tablet) Count stale rowsets correctly in metadata size checks - #70683

Open
foxtail463 wants to merge 1 commit into
apache:masterfrom
foxtail463:fix/stale-rowset-metadata-count
Open

foxtail463 wants to merge 1 commit into
apache:masterfrom
foxtail463:fix/stale-rowset-metadata-count

Conversation

@foxtail463

Copy link
Copy Markdown
Contributor

Problem Summary:
stale_version_count() returned the active rowset count, causing metadata size checks to reject valid loads prematurely or underestimate retained metadata when active and stale counts differed.

Solution:
Return the size of _stale_rs_metas from TabletMeta::stale_version_count(). Existing load and push checks then estimate metadata size using the sum of active and stale rowsets.

@foxtail463

Copy link
Copy Markdown
Contributor Author

run buildall

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