Skip to content

[protocol] Add PartitionState v21 with HLL sketch field#2707

Merged
pthirun merged 1 commit into
linkedin:mainfrom
pthirun:pthiruna/hll-partition-state-v21
Apr 8, 2026
Merged

[protocol] Add PartitionState v21 with HLL sketch field#2707
pthirun merged 1 commit into
linkedin:mainfrom
pthirun:pthiruna/hll-partition-state-v21

Conversation

@pthirun
Copy link
Copy Markdown
Contributor

@pthirun pthirun commented Apr 8, 2026

Problem Statement

PR #2671 adds HLL-based unique key count tracking that needs to persist the HLL sketch in the partition checkpoint. This requires a new field in the PartitionState Avro schema. CI policy requires schema changes in a separate PR.

Solution

Add PartitionState v21 with one new nullable bytes field and bump the protocol version.

New field: uniqueIngestedKeyCountHllSketch (nullable bytes, default null). ~8KB when populated at lgK=13.

Code changes

  • No new code behind a config. Schema-only change.
  • No new log lines.

Concurrency-Specific Checks

  • N/A — schema change only, no runtime code.

How was this PR tested?

Does this PR introduce any user-facing or breaking changes?

  • No. You can skip the rest of this section.

@pthirun pthirun changed the title [schema] Add PartitionState v21 with HLL sketch field [protocol] Add PartitionState v21 with HLL sketch field Apr 8, 2026
@pthirun pthirun force-pushed the pthiruna/hll-partition-state-v21 branch 3 times, most recently from 10a0d24 to c6bae42 Compare April 8, 2026 20:49
…field

Add nullable bytes field for HLL sketch persistence. This schema
change is a prerequisite for the HLL-based unique key count feature
(PR linkedin#2671).

New field:
  uniqueIngestedKeyCountHllSketch: ["null", "bytes"], default: null

Backward compatible: old servers ignore the new field (has default),
new servers reading old data see null.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pthirun pthirun force-pushed the pthiruna/hll-partition-state-v21 branch from c6bae42 to 2afed76 Compare April 8, 2026 21:15
@pthirun pthirun merged commit 92a3ae3 into linkedin:main Apr 8, 2026
106 checks passed
@pthirun pthirun deleted the pthiruna/hll-partition-state-v21 branch April 8, 2026 22:12
pthirun added a commit to pthirun/venice that referenced this pull request Apr 8, 2026
- Remove PartitionState v21 schema file (landed separately in PR linkedin#2707)
- Remove v20 version pin from build.gradle versionOverrides (activates v21)
- AvroProtocolDefinition already at v21 from prior commits

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
pthirun added a commit to pthirun/venice that referenced this pull request Apr 8, 2026
pthirun added a commit to pthirun/venice that referenced this pull request Apr 8, 2026
Activates PartitionState v21 schema (landed in PR linkedin#2707).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
pthirun added a commit to pthirun/venice that referenced this pull request Apr 9, 2026
- Remove PartitionState v21 schema file (landed separately in PR linkedin#2707)
- Remove v20 version pin from build.gradle versionOverrides (activates v21)
- AvroProtocolDefinition already at v21 from prior commits

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
pthirun added a commit to pthirun/venice that referenced this pull request Apr 9, 2026
pthirun added a commit to pthirun/venice that referenced this pull request Apr 9, 2026
Activates PartitionState v21 schema (landed in PR linkedin#2707).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

2 participants