Skip to content

PHOENIX-8088 GlobalConnectionTenantTableIT never runs and has two failing tests - #2720

Merged
apurtell merged 1 commit into
apache:masterfrom
apurtell:PHOENIX-8088
Dec 5, 2026
Merged

apurtell merged 1 commit into
apache:masterfrom
apurtell:PHOENIX-8088

Conversation

@apurtell

@apurtell apurtell commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

This test class has no test category, so CI never runs it. When it runs alone, two of its tests fail every time. The change adds the category for tests that need their own mini cluster. Apart from a javadoc fix, this is a test-only change.

One test expects two lookups of a tenant view on a global connection to return the same cached table. Since PHOENIX-6761, a global connection prunes cached tables of other tenants and fetches them from the server each time. The test now compares the table key, timestamp and sequence number, and the javadoc no longer promises a cache hit. The other test shows a product defect: a point-in-time lookup of a tenant view merges its ancestors at the latest timestamp. The change ignores this test until a follow-up fixes the metadata cache path.

🤖 Generated with Claude Code

…ling tests

The class has no test category, so CI never runs it, and two tests fail.
A global connection prunes tenant PTables from the shared cache, so the cache
test now compares table identity, not the instance, and the javadoc no longer
promises a cache hit. The point-in-time view test is ignored because ancestors
resolve at the latest timestamp. Add the class to NeedsOwnMiniClusterTest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No actionable issues were found in the reviewed changes.

No open issues 🎉

What changed in this PR

Enables CI execution of GlobalConnectionTenantTableIT and aligns its assertions and documentation with current tenant metadata behavior. Production logic is unchanged.

Changes:

  • Adds the category for tests requiring their own mini cluster.
  • Compares table versions instead of object identity and ignores a test exposing a known point-in-time lookup defect.
  • Clarifies tenant metadata caching behavior in Javadoc.
File Description
phoenix-core/​src/​it/​java/​org/​apache/​phoenix/​end2end/​GlobalConnectionTenantTableIT.java Enables CI coverage, updates assertions, and ignores the known failing test.
phoenix-core-client/​src/​main/​java/​org/​apache/​phoenix/​jdbc/​PhoenixConnection.java Corrects Javadoc describing tenant metadata cache behavior.

Review effort: Balanced

@apurtell

apurtell commented Dec 4, 2026

Copy link
Copy Markdown
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)

@apurtell
apurtell merged commit 682ac19 into apache:master Dec 5, 2026
11 of 13 checks passed
asf-gitbox-commits pushed a commit that referenced this pull request Dec 5, 2026
…ling tests (#2720)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Andrew Purtell <apurtell@salesforce.com>
asf-gitbox-commits pushed a commit that referenced this pull request Dec 5, 2026
…ling tests (#2720)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Andrew Purtell <apurtell@salesforce.com>
@apurtell
apurtell deleted the PHOENIX-8088 branch December 5, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants