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

Log a debug message when two or more indices have same or very close cost amounts

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.10.0, 1.9.10
    • query
    • None

    Description

      The index selection mechanism in QueryImpl may lead to the wrong index to be picked up in case different indexes return same (or very close) costs.
      As a remedy we can set cost overrides, change queries or index definitions.

      However to speed up identification of such problematics situations it'd be good to have a line in the (debug) logs reporting when for a particular query a number of indexes have same or very close costs (in the order of 10^-1). This would give a first pointer to such possible problematic situations to be inspected.

      Attachments

        1. OAK-7795.0.patch
          1 kB
          Tommaso Teofili
        2. OAK-7795.1.patch
          2 kB
          Tommaso Teofili

        Issue Links

          Activity

            People

              teofili Tommaso Teofili
              teofili Tommaso Teofili
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: