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

   ### What changes were proposed in this pull request?
   Brings `PHOENIX-7562-feature-new` up to `master` at b3f21acfe4.
   
   The previous sync (#2651) went up to `master` a3e8731c27. It was 
squash-merged, so git still shows the old merge-base (29fbbbcef0). For this 
reason, this sync starts from a3e8731c27, not from the merge-base. Each 
`master` commit after a3e8731c27 is cherry-picked in order, one commit per pick 
(`cherry-pick -x`), so that each conflict resolution is visible.
   
   - 21 commits are cherry-picked (list below). No commit is skipped. None of 
them was on the feature branch before.
   - 1 conflict: PHOENIX-8053 (#2665) in `IndexRegionObserver`, in the imports 
only. `master` removes the `VisibleForTesting` and `Preconditions` imports, 
because `master` no longer uses them. The feature branch still uses both (for 
example, the `Preconditions.checkState` replication-origin checks in 
`preBatchMutateWithExceptions`). Thus this PR keeps both imports. The 
PHOENIX-8053 code changes apply with no conflict.
   - PHOENIX-8053 and the standby replay path: the replay path 
(`preBatchMutateReplication`) does not call `getCurrentRowStates`, so it does 
not add rows to `pendingRows`. The new `addedToPendingRows` flag stays false 
for a replay batch, so `postBatchMutateIndispensably` does not remove pending 
rows for it. Before this change, the cleanup ran for each batch past the INIT 
phase. In both cases a replay batch has no pending rows to remove, so the 
result is the same.
   - 1 follow-up commit at the end: `Apply spotless formatting after master 
sync`. This is a Javadoc reflow in `MetaDataClient` only. The previous sync had 
the same reflow, but a later feature-branch commit put the old format back.
   
   <details><summary>Cherry-picked commits (21, in order)</summary>
   
   - PHOENIX-8041 Client thread pools stop working after ThreadGroup 
destruction (#2652)
   - PHOENIX-8018: Disable global index read repair for ROW_SIZE() and 
RAW_ROW_SIZE() scans (#2646)
   - PHOENIX-8069 Move PR precommit and branch builds from Jenkins to GitHub 
Actions (#2674)
   - PHOENIX-8069 ADDENDUM to fix backward compat tests
   - Bump actions/checkout from 7.0.0 to 7.0.1 (#2676)
   - Bump actions/cache from 6.0.0 to 6.1.0 (#2677)
   - Bump actions/setup-java from 5.3.0 to 6.3.0 (#2678)
   - Bump actions/upload-artifact from 7.0.1 to 7.0.2 (#2679)
   - Bump org.xerial.snappy:snappy-java from 1.1.10.8 to 1.1.10.9 (#2680)
   - Bump org.bouncycastle:bcprov-jdk18on from 1.79 to 1.85 (#2681)
   - PHOENIX-5215 Migrate from HTrace to OpenTelemetry tracing (#2586)
   - PHOENIX-5215 Addendum: OpenTelemetry packaging changes for 5.4
   - Bump org.apache.logging.log4j:log4j-core from 2.25.3 to 2.25.4 (#2682)
   - Bump org.apache.logging.log4j:log4j-api from 2.25.3 to 2.25.5 (#2683)
   - Bump org.apache.zookeeper:zookeeper from 3.8.4 to 3.8.6 (#2684)
   - PHOENIX-5215 Addendum: Remove the stale tracing sink check
   - PHOENIX-8032 Support SPLIT ON in CREATE CDC to pre-split the CDC index 
(#2643)
   - PHOENIX-8053 Concurrency bugs related to conditional UPSERTs on same row 
(#2665)
   - PHOENIX-7828 Addendum: testUcfWithNoGetTableCalls fails with last DDL 
timestamp validation (#2685)
   - PHOENIX-8073 Disable failing Transform integration tests until rework 
(#2705)
   - PHOENIX-8074 Increase default CDC TTL_DELETE mutation batch size to 500 
(#2709)
   
   </details>
   
   ### Why are the changes needed?
   The feature branch must stay close to `master`. This makes the final merge 
smaller, and CCF testing gets the latest `master` fixes, for example 
PHOENIX-8053 (concurrent conditional UPSERTs on the same row) and PHOENIX-8041 
(client thread pools).
   
   ### Does this PR introduce _any_ user-facing change?
   Not compared with `master`. The changes are the `master` commits listed 
above. They include the HTrace to OpenTelemetry tracing change (PHOENIX-5215).
   
   ### How was this patch tested?
   - Build: `mvn install -DskipTests` passes.
   - `mvn spotless:apply` makes no other changes.
   - Unit tests: 107 tests in 9 classes, 0 failures. The classes are 
`IndexRegionObserverReplayTest`, `IndexRegionObserverReplicationLogGroupTest`, 
`MutationStateTest`, `FailoverPhoenixConnectionTest`, 
`ParallelPhoenixConnectionTest`, `PhoenixStatementTest`, `ScanUtilTest`, 
`PhoenixMapReduceUtilTest`, and `MetaDataClientTest`.
   - Integration tests that pass (tests run / skipped):
     - `OnDuplicateKeyIT` 154
     - `ConcurrentNoOpAtomicUpsertIndexIT` 18
     - `ConcurrentMutationsIT` 5 / 2 skipped
     - `ConcurrentMutationsExtendedIT` 20
     - `IndexRegionObserverMutationBlockingIT` 7
     - `ReplicationLogGroupIT` 30
     - `ReplicationLogGroupParallelIT` 2
     - `ReplicationLogGroupEventualIndexIT` 1
     - `CDCDefinitionIT` 34
     - `PhoenixTracingIT` 3
     - `UCFWithDisabledIndexIT` 4
     - `FailoverPhoenixConnection2IT` 16 / 1 skipped
   - `OnDuplicateKey2IT` stops with `OutOfMemoryError: Java heap space` on my 
local machine (the default 2200m test heap). The same error occurs on `master` 
at b3f21acfe4 on the same machine. Thus it is a local environment problem, not 
a problem of this sync. On the `master` GitHub Actions branch builds, this test 
passes (252 tests, 0 failures).
   - The full suite runs in the PR precommit CI.
   
   ### 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