Repository navigation
PHOENIX-8085 UngroupedAggregateRegionObserver keeps full configuration copies for each region - #2717
Merged
Merged
Conversation
…n copies for each region Each open region has an UngroupedAggregateRegionObserver instance. Its start method made three full copies of the region configuration. It also made a property map of the index write copy. One copy has no reader. The coprocessor now keeps only a reference to the environment configuration. Compaction and index write failure handling make their copy when they run. Thus these paths now see an online configuration update, as the other readers do. This removes about 1 MB of heap for each open region. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the change reducing retained per-region configuration copies.
No open issues 🎉
What changed in this PR
Reduces per-region heap usage by avoiding retained configuration copies in UngroupedAggregateRegionObserver.
Changes:
- Retains the environment configuration reference and removes unused upsert-select configuration.
- Creates configuration copies on demand for compaction and failed index writes, allowing these paths to see online updates.
| File | Description |
|---|---|
| phoenix-core-server/src/main/java/org/apache/phoenix/coprocessor/UngroupedAggregateRegionObserver.java | Replaces retained configuration copies with operation-local copies. |
Review effort: Balanced
Contributor
Author
|
Precommit note: the failures in this run are not related to this change. Each one is a known problem on master.
(Claude Code) |
asf-gitbox-commits
pushed a commit
that referenced
this pull request
Dec 5, 2026
…n copies for each region (#2717) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Andrew Purtell <apurtell@salesforce.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.
HBase creates one instance of this region observer for each open region. Its start method keeps three full copies of the region configuration and one more read-only copy. These copies use region server heap for each open region, for the life of the region. One of them has no readers.
The change keeps only a reference to the environment configuration. The compaction path and the index write failure path now make their own copy when they run. Behavior change: these paths now see an online configuration update. The cost is one copy per compaction and per failed index write batch. An error during a copy now fails that operation, not the coprocessor start.
🤖 Generated with Claude Code