Skip to content

feat: partial load rule announcement#19682

Open
clintropolis wants to merge 1 commit into
apache:masterfrom
clintropolis:partial-load-rule-announcer-fixes
Open

feat: partial load rule announcement#19682
clintropolis wants to merge 1 commit into
apache:masterfrom
clintropolis:partial-load-rule-announcer-fixes

Conversation

@clintropolis

Copy link
Copy Markdown
Member

Description

Follow-up to #19671, adds the wiring for partial loaded segments from partial load rules to announce the partially loaded size instead of the full segment size, so that the coordinator side accounting can more accurately manage cache placement. The main change is thatSegmentCacheManager load and bootstrap methods now return a DataSegment which implementations can use to thread a DataSegmentAndLoadProfile to the announcer to do the partial announcement (same type used coordinator side to carry non-serializing 'side-car' information about partial load stuff)

@clintropolis clintropolis added this to the 38.0.0 milestone Jul 13, 2026
Comment on lines +266 to +270
final long fullSize = Long.parseLong(
cluster.callApi().runSql(
"SELECT \"size\" FROM sys.segments WHERE datasource = '" + dataSource + "'"
).trim()
);
Comment on lines +273 to +277
final long currSize = Long.parseLong(
cluster.callApi().runSql(
"SELECT curr_size FROM sys.servers WHERE server_type = 'historical'"
).trim()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants