Repository navigation
PHOENIX-8074 Increase default CDC TTL_DELETE mutation batch size to 500 - #2709
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
virajjasani
approved these changes
Nov 25, 2026
virajjasani
pushed a commit
that referenced
this pull request
Nov 25, 2026
…00 (#2709) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
phoenix.cdc.ttl.mutation.batch.size(DEFAULT_CDC_TTL_MUTATION_BATCH_SIZE) from 50 to 500. This is how many TTL_DELETE CDC events a major compaction writes to the CDC index in one batch.TableTTLIT#testCDCTTLDeleteEventsForPartiallyExpiredRows. It inserts 15,000 rows, updates 8,250 of them before they expire, and runs a major compaction once the other 6,750 rows are past TTL + max lookback. It checks that:testCDCBatchMutationsForTTLExpiredRows, which said 82 rows. The test uses 182.Why are the changes needed?
With a batch size of 50, a compaction that expires thousands of rows makes many small writes to the CDC index: 135 batches for 6,750 rows, compared with 14 batches at 500. The existing CDC TTL tests expire at most 182 rows, so none of them covered a large number of expired rows spread over many batches.
Does this PR introduce any user-facing change?
The default of
phoenix.cdc.ttl.mutation.batch.sizechanges from 50 to 500. Clusters that set this property keep their value. The content of CDC events does not change.How was this patch tested?
TableTTLITparameter sets, in about 3.5 minutes in total. The test logs showProcessed 6750 mutations in 14 batchesfor each compaction, with no retries or missed events.TableTTLITpasses locally: 99 runs in about 17 minutes, within the 30-minute limit forNeedsOwnMiniClusterTestclasses.Was this patch authored or co-authored using generative AI tooling?
Co-authored-by: Claude Code (Claude Opus 5.5)
🤖 Co-authored with Claude Code