Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9642

TestXYShapeEncoding.testRandomPolygonEncoding failure

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.8
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      This test fails for the following seed:

       

      ./gradlew test --tests TestXYShapeEncoding.testRandomPolygonEncoding -Dtests.seed=CB4BC47404510050 -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=ug -Dtests.timezone=America/Matamoros -Dtests.asserts=true -Dtests.file.encoding=UTF-8

       

      When encoding.a triangle we perform two actions: 

      1) Make sure that the orientation of the triangle is CCW

      2) Place the point with minimum X in the first position so we might rotate the points in the triangle.

      In this case the triangle is degenerated so when the triangle is rotated,  it changes the orientation, tripping an assertion when decoding it. I think the fix for this is to change the order of the actions above. 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ivera Ignacio Vera
                Reporter:
                ivera Ignacio Vera
              • 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 - 40m
                  40m