Vladislav Pyatkov created IGNITE-28880:
------------------------------------------

             Summary: IndexQueryInlineSizesTest.testFixedInlineKeys is flaky
                 Key: IGNITE-28880
                 URL: https://issues.apache.org/jira/browse/IGNITE-28880
             Project: Ignite
          Issue Type: Bug
            Reporter: Vladislav Pyatkov


IndexQueryInlineSizesTest.check() generates range bounds as:
{code}
int low = r.nextInt(CNT / 2);
int high = low + r.nextInt(CNT / 2);
{code}
When the second nextInt() returns 0, high == low. The index query then 
correctly returns no rows for conditions fld1 > low and fld2 < high, but the 
test asserts high - low - 1, which equals -1.
This produces a flaky failure such as:
{noformat}
IndexQueryInlineSizesTest.testFixedInlineKeys[inlineSize=8]
java.lang.AssertionError: expected:<-1> but was:<0>
{noformat}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to