lokiore opened a new pull request, #2651:
URL: https://github.com/apache/phoenix/pull/2651
### What changes were proposed in this pull request?
Brings `PHOENIX-7562-feature-new` up to `master` at a3e8731c27. The
merge-base is 29fbbbcef0 (PHOENIX-7879 #2495). Each `master` commit is
cherry-picked in order, one commit per pick, so that every conflict resolution
is visible.
- 49 commits are cherry-picked (list below).
- 3 commits are skipped as empty, because the feature branch already has the
same change:
- 9477645c97 Revert "PHOENIX-7879 Tests for EXPLAIN text and
ExplainPlanAttributes serialization compatibility (#2495)"
- 96c05a47cb PHOENIX-7996 Correctly maintain immutable global indexes on
the server side for partial upserts (#2611)
- 71d6dbc3d8 PHOENIX-8034 PreCommit GitHub PR build unstable due to jira
plugin (#2645)
- 1 conflict: PHOENIX-7961 (#2574) in `IndexRegionObserver`. The feature
branch keeps its replay early return before `context.batchTimestamp =
getBatchTimestamp(context, table)`. The batch timestamp and the strict
conditional-TTL flag move to `BatchMutateContext`, as in `master`. The replay
precondition uses `context.hasStrictConditionalTTL()`. Replayed mutations do
not carry the TTL attributes, so on the standby this check is always false and
has no effect.
- 3 follow-up commits at the end:
- `Apply spotless formatting after master sync`: a Javadoc reflow only.
- `Fix test compile after master sync`:
`ReplicationLogGroupEventualIndexIT` no longer overrides the timestamp-buffer
constant, which is now private on `master`. `HighAvailabilityTestingUtilityIT`
calls the instance method `doTestWhenOneHBaseDown`, which the feature branch
uses.
- `Disable compactions in HighAvailabilityTestingUtilityIT`: with the new
PHOENIX-8007 addendum test, a compaction that starts at class teardown opens a
server-side CQSI. Its SYSTEM.CATALOG `getVersion` RPC retries against the
cluster that is shutting down, and it holds the CQSI init lock. This blocks
`CompactSplit.join`, so `shutdownMiniCluster` hangs. The tests do not need
compactions.
Note: `.asf.yaml` allows only squash merges. To keep the per-commit history,
as in the earlier syncs, a committer can push this branch directly instead of
using the merge button.
<details><summary>Cherry-picked commits (49, in order)</summary>
- PHOENIX-7880 Do not treat literal string SET values as arithmetic in BSON
UpdateExpression (#2496)
- PHOENIX-7880 addendum (#2509)
- PHOENIX-7878 CDC perf improvement - skip redundant cell versions on data
table scans (#2493)
- PHOENIX-7267 CsvBulkLoadTool fails job due to a bad record with
"(startline 1) EOF reached before encapsulated token finished" (#2399)
- PHOENIX-7933 Avoid using reflection to initialize ServerCacheFactory
(#2539)
- PHOENIX-7884 : Refactor tracking of IndexCdcConsumer lag (#2506)
- PHOENIX-7883 : More metrics for EC index consumer (#2543)
- PHOENIX-7943 Add 2.6.0 to hbase.profile.list for release (#2550)
- PHOENIX-7944 maven-dependency-plugin analyze-only fails on hbase-2.6.0
profile due to bouncycastle jdk15on/jdk18on mismatch (#2553)
- PHOENIX-7944 (addendum) Move bcprov-jdk18on unused-declared ignore into
phoenix-core pom (#2555)
- PHOENIX-7827 TableSnapshotReadsMapReduceIT per-test unique snapshot name
(#2444)
- PHOENIX-7947 GlobalConnectionTenantTableIT NPE when auto-unboxing (#2558)
- PHOENIX-7822 MaxConcurrentConnectionsIT poll for async connection counts
(#2439)
- PHOENIX-7825 ConcurrentMutationsIT make MyClock.shouldAdvance volatile
(#2442)
- PHOENIX-7826 MetadataGetTableReadLockIT wait for coprocessor swap to land
(#2443)
- PHOENIX-7830 De-flake MutableIndexFailureIT (#2447)
- PHOENIX-7831 PhoenixQueryTimeoutIT wait for DelayedRegionObserver to load
(#2448)
- PHOENIX-7952 UpsertSelectIT is flaky due to a connection leak check using
a global counter (#2561)
- PHOENIX-7945 - Retain orphaned delete markers during Phoenix compaction
(#2562)
- PHOENIX-7839 MetaDataEndPointIT recategorize as NeedsOwnMiniClusterTest
(#2456)
- PHOENIX-7832 TenantViewOperationWorkloadIT add missing break in WEIGHTED
switch case (#2449)
- PHOENIX-7823 AuditLoggingIT replace hardcoded table names with
generateUniqueName() (#2440)
- PHOENIX-7820 ConnectionQueryServicesImpl.createSnapshot bounded retry on
transient exception (#2438)
- PHOENIX-7945 Fix OrphanDeleteMarkerCompactionIT timeout on HBase 2.6
(addendum) (#2565)
- PHOENIX-7953 Add addPhoenixDependencyJars utility for MapReduce jobs
(#2564)
- PHOENIX-7855 Fix for flapper root cause:
java.lang.IllegalArgumentException: bound must be positive (#2475)
- PHOENIX-7833 CDCBaseIT/CDCQueryIT keep manual edge installed after
applyMutations (#2450)
- PHOENIX-7834 CDCBaseIT do not force-delete a never-upserted row (#2451)
- PHOENIX-7840 UpdateCacheIT recategorize as NeedsOwnMiniClusterTest (#2457)
- PHOENIX-7828 De-flake UCFWithDisabledIndexIT (#2445)
- PHOENIX-7824 ConcurrentMutationsExtendedIT fix wrong TimeUnit on
doneSignal.await (#2441)
- PHOENIX-7816 spotless addendum (#2578)
- PHOENIX-7965 :- Guard ConnectionQueryServicesImpl.getMetaDataCache()
against a closed connection (#2580)
- PHOENIX-7969 Update supported client versions in backward compatibility
(#2584)
- PHOENIX-7980 Improve handling of test timeouts and resource loss (#2593)
- PHOENIX-7986 : Replace IndexCDCConsumer's exponential idle backoff with a
fixed poll interval (#2597)
- PHOENIX-7982 Data corruption in UPSERT SELECT with VARBINARY_ENCODED
(#2599)
- PHOENIX-7961 Secondary index diverges from data table after TTL expiry on
partial-touch upserts (#2574)
- PHOENIX-8000 Conditional TTL not enforced at compaction for SYSTEM tables
(#2613)
- PHOENIX-8003 Reduce index mutation propagation gap for eventually
consistent GSIs (#2616)
- PHOENIX-8000 Fix CDCStreamCompactionTTLIT hang under HBase 2.6
procedure-based flush (addendum) (#2621)
- PHOENIX-7876 Improve EXPLAIN (#2556)
- PHOENIX-8007 Perf bottleneck - Server side Index metadata lookup overhead
(#2625)
- PHOENIX-8007 Perf bottleneck - Server side Index metadata lookup overhead
(ADDENDUM) (#2629)
- PHOENIX-8010 NullPointerException in getOffsetScanner for point-lookup
queries with OFFSET (#2626)
- PHOENIX-8016 Use index timestamp for uncovered stale-entry cleanup (#2630)
- PHOENIX-8015 Enforce uncovered global index limits after verification
(#2637)
- PHOENIX-8023 SYSTEM.CATALOG close stalls on TTL lookup self-scan (#2639)
- PHOENIX-7788 CREATE TABLE fails with TableNotEnabledException when
underlying HBase table exists but is disabled (#2594)
</details>
### Why are the changes needed?
The feature branch must stay close to `master` to make the final merge
smaller and to get the latest `master` fixes into CCF testing.
### Does this PR introduce _any_ user-facing change?
Not compared with `master`. The changes are the `master` commits listed
above.
### How was this patch tested?
- `mvn install -DskipTests`: passes.
- Unit tests for the touched areas: 54 run, 0 failures.
- Integration tests for the touched areas: 380 run, 0 failures, 45 skipped.
- `HighAvailabilityTestingUtilityIT`: 4 tests run, 0 failures, and teardown
completes. Before the compaction fix, teardown hung 2 times out of 2 runs.
### 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]