Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-8035

Debug logging when two or more indices have same or very close cost amounts doesn't work in case both indices belong to the same type of Query Index

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.12.0
    • query

    Description

      Steps to reproduce -

      1. You would need two index definitions of same query index type , let's say fullText index , having similar cost evaluations.
      2. Now while the index plan is evaluated you will notice that there should have been a debug log saying that selected index has similar cost - this serves as an important warning to either change the index definitions or the query (https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/QueryImpl.java#L1069#L1072)

       

      However If we have a look at this code block here - https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/QueryImpl.java#L1017#L1041 , there is no comparison for near best costs for index plans having same query index type .

       

      cc : teofili

      Attachments

        1. OAK-8035_2.patch
          11 kB
          Nitin Gupta
        2. OAK-8035_3.patch
          1 kB
          Nitin Gupta
        3. OAK-8035_4.patch
          4 kB
          Nitin Gupta
        4. OAK-8035.patch
          11 kB
          Nitin Gupta

        Issue Links

          Activity

            People

              reschke Julian Reschke
              ngupta Nitin Gupta
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: