Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-16005

SqlExampleTest is flaky

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 3.0.0-alpha4
    • None

    Description

      SqlExampleTest fails with the following error:

      [INFO] Running org.apache.ignite.example.sql.jdbc.SqlExamplesTest
      [ERROR] WARNING: An illegal reflective access operation has occurred
      [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 69.264 s <<< FAILURE! - in org.apache.ignite.example.sql.jdbc.SqlExamplesTest
      [ERROR] org.apache.ignite.example.sql.jdbc.SqlExamplesTest.testSqlJdbcExample  Time elapsed: 69.241 s  <<< FAILURE!
          org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
          at org.apache.ignite.example.sql.jdbc.SqlExamplesTest.testSqlJdbcExample(SqlExamplesTest.java:48)
      

      Test just checks the output of SqlJdbcExample, which, in turn, prints resultset provided by "SELECT a.FIRST_NAME, a.LAST_NAME, a.BALANCE FROM ACCOUNTS a WHERE a.BALANCE < 1500.0", for instance.
      The root cause of the issue is that the particular ordering is not guaranteed. So, the ordering should be explicitly specified by "ORDER BY" clause.

      Attachments

        1. _Test_Run_Examples_50.log.zip
          7 kB
          Vyacheslav Koptilin

        Activity

          People

            slava.koptilin Vyacheslav Koptilin
            slava.koptilin Vyacheslav Koptilin
            Mirza Aliev Mirza Aliev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m