This is an automated email from the ASF dual-hosted git repository.
palashc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/master by this push:
new 4e71d19232 PHOENIX-7839 MetaDataEndPointIT recategorize as
NeedsOwnMiniClusterTest (#2456)
4e71d19232 is described below
commit 4e71d192328fbb9dedaa8aa23bde21eb852a5ac1
Author: Andrew Purtell <[email protected]>
AuthorDate: Wed Jul 1 12:40:31 2026 -0700
PHOENIX-7839 MetaDataEndPointIT recategorize as NeedsOwnMiniClusterTest
(#2456)
---
.../apache/phoenix/end2end/MetaDataEndPointIT.java | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/MetaDataEndPointIT.java
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/MetaDataEndPointIT.java
index ca48f96a7f..66fdc1540b 100644
---
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/MetaDataEndPointIT.java
+++
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/MetaDataEndPointIT.java
@@ -39,7 +39,26 @@ import org.apache.phoenix.util.SchemaUtil;
import org.junit.Test;
import org.junit.experimental.categories.Category;
-@Category(ParallelStatsDisabledTest.class)
+/**
+ * The metric tests in this class assert against the process-global
+ * {@link MetricsMetadataSourceFactory#getMetadataMetricsSource()} singleton,
whose counters
+ * (CREATE_TABLE_COUNT, METADATA_CACHE_ESTIMATED_USED_SIZE,
METADATA_CACHE_ADD_COUNT, ...) are
+ * incremented by every server-side metadata operation in the same JVM.
Running this test class in
+ * the {@link ParallelStatsDisabledTest} group lets parallel tests in other
classes in the same
+ * fork mutate those counters between this test's "capture baseline" and
"verify after CREATE
+ * TABLE" calls, producing intermittent strict-equality assertion failures
such as:
+ *
+ * <pre>
+ * testMetadataMetricsOfCreateTable
+ * expected:<232498> but was:<240491>
+ * </pre>
+ *
+ * Categorize as {@link NeedsOwnMiniClusterTest} so failsafe runs this class
in its own forked JVM
+ * (reuseForks=false), guaranteeing exclusive ownership of the metric
singleton for the duration
+ * of the suite. Tests within this class still run sequentially in that fork,
which is sufficient
+ * because each individual test captures and verifies its own counter deltas
in a single thread.
+ */
+@Category(NeedsOwnMiniClusterTest.class)
public class MetaDataEndPointIT extends ParallelStatsDisabledIT {
@Test
public void testUpdateIndexState() throws Throwable {