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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment