lokiore opened a new pull request, #2703:
URL: https://github.com/apache/phoenix/pull/2703

   JIRA: https://issues.apache.org/jira/browse/PHOENIX-7996
   
   Backport of #2611 (master commit 96c05a47cb) to `5.3`.
   
   ### What changes were proposed in this pull request?
   
   Cherry-pick of the master change. It makes server-side maintenance of 
immutable, global, non-transactional indexes correct for partial upserts. 
`DEFAULT_SERVER_SIDE_IMMUTABLE_INDEXES_ENABLED` stays `false` on `5.3`, as on 
master. Thus there is no change to the default behavior.
   
   - All data-table gates use 
`IndexUtil.isServerSideImmutableIndexMaintenanceEnabled(...)`. Immutable tables 
with a `ROW_TIMESTAMP` column stay client-maintained.
   - `IndexRegionObserver` reads back the current row for an immutable batch 
with a covered or uncovered global index when a mutation omits one of that 
index's on-disk columns.
   - The immutable server-serialize filter uses `IndexUtil.isGlobalIndex`, so 
uncovered global immutable indexes with a matching storage scheme are 
maintained.
   
   See #2611 for the full description.
   
   Backport note: one conflict in `IndexRegionObserver.java`. The new 
`isPartialGlobalIndexMutation` method is next to `getPendingContext`, which 
`5.3` has from PHOENIX-8053. Both methods are kept. Other files applied cleanly.
   
   ### Why are the changes needed?
   
   Same as #2611. Without this change, when 
`phoenix.server.side.immutable.indexes.enabled=true`, a partial upsert can drop 
a covered column from the index or write a null-keyed uncovered index entry, 
and an uncovered global immutable index can get no updates.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No default behavior change. When the flag is enabled, the behavior is the 
same as on master after #2611.
   
   ### How was this patch tested?
   
   On `5.3` (JDK 8), the change compiles (main and test sources). These ITs are 
running locally; I will update this section with the result:
   
   - `ServerSideImmutableIndexIT`
   - `ClientSideImmutableIndexIT`
   - `GlobalIndexCheckerIT`
   - `DeleteIT`
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 5.5)
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to