Skip to content

PHOENIX-8094 MetaDataEndPointIT turns off the CDC consumer - #2726

Open
apurtell wants to merge 1 commit into
apache:masterfrom
apurtell:PHOENIX-8094
Open

apurtell wants to merge 1 commit into
apache:masterfrom
apurtell:PHOENIX-8094

Conversation

@apurtell

@apurtell apurtell commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

The drop table metrics test fails sometimes in CI. It checks that the estimated size of the metadata cache goes down by exactly the size of the dropped table. The class inherits a setup that keeps the index CDC consumer on. After a delay, the consumer for each data table region looks up its table, and the server adds the table to the metadata cache. An earlier test invalidates the cache entry of its table. The consumer reload can then happen during a later test and change the cache size.

This change is test-only. The class gets its own setup, which turns off the CDC consumer. The setup keeps the parent method name, so it hides the parent setup. With any other name, the parent setup starts the cluster first, with the consumer on.

🤖 Generated with Claude Code

MetaDataEndPointIT checks the size of the metadata cache. The CDC consumer
of an earlier test can load a table into the cache during a later test, and
the size check fails. The class now sets up its cluster with the parent
properties and the CDC consumer off.

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 active review issues are reported for this test-only change to prevent background CDC consumers from repopulating the metadata cache.

No open issues 🎉

What changed in this PR

This test-only change stabilizes metadata-cache size assertions by preventing background CDC consumers from repopulating the cache.

Changes:

  • Adds a class-specific doSetup() that hides the inherited setup and disables the CDC consumer.
  • Preserves the existing lookback and disabled statistics-parallelization settings.
File Description
phoenix-core/​src/​it/​java/​org/​apache/​phoenix/​end2end/​MetaDataEndPointIT.java Configures the test cluster to disable background CDC cache loading.

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)

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