Repository navigation
Conversation
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>
There was a problem hiding this comment.
🟢 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
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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