Andrew Kyle Purtell created PHOENIX-8107:
--------------------------------------------
Summary: SCNIT.testSCNWithTTL has no timing margin
Key: PHOENIX-8107
URL: https://issues.apache.org/jira/browse/PHOENIX-8107
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
{{SCNIT.testSCNWithTTL}} fails:
{noformat}
org.apache.phoenix.end2end.SCNIT.testSCNWithTTL -- Time elapsed: 5.127 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.assertFalse(Assert.java:65)
at org.junit.Assert.assertFalse(Assert.java:75)
at org.apache.phoenix.end2end.SCNIT.testSCNWithTTL(SCNIT.java:97)
{noformat}
The test creates a table with a TTL of 2 s and upserts 3 rows. It sleeps for 3
s. Then it queries at an SCN 1 s before the current time and expects no rows.
The test has 0 ms of guaranteed margin.
This is a test race, not a product defect.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)