Andrew Kyle Purtell created PHOENIX-8101:
--------------------------------------------
Summary: PhoenixMetricsIT asserts nonzero millisecond timings for
short operations
Key: PHOENIX-8101
URL: https://issues.apache.org/jira/browse/PHOENIX-8101
Project: Phoenix
Issue Type: Test
Components: test
Affects Versions: 5.3.2
Reporter: Andrew Kyle Purtell
Assignee: Andrew Kyle Purtell
Fix For: 5.4.0, 5.3.3
{{PhoenixMetricsIT.testGlobalPhoenixMetricsForUpsertSelect}} fails:
{noformat}
Tests run: 27, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 125.6 s <<<
FAILURE! -- in org.apache.phoenix.monitoring.PhoenixMetricsIT
org.apache.phoenix.monitoring.PhoenixMetricsIT.testGlobalPhoenixMetricsForUpsertSelect
-- Time elapsed: 8.494 s <<< FAILURE!
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:87)
at org.junit.Assert.assertTrue(Assert.java:42)
at org.junit.Assert.assertTrue(Assert.java:53)
at
org.apache.phoenix.monitoring.PhoenixMetricsIT.testGlobalPhoenixMetricsForUpsertSelect(PhoenixMetricsIT.java:277)
{noformat}
The test asserts {{> 0}} on a millisecond counter that can legally be 0 for a
10-row scan. The failure is before {{{}verifyMetricsFromSink(){}}}, so sink lag
is not involved. The product behavior is correct.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)