Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-42073

Server does not require hint() for min()/max() when IDHACK is used

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Querying
    • Sprint:
      Query 2019-07-29

      Description

      In SERVER-39567 we changed min()/max() to require a hint(), but Kay Kim discovered that this is not enforced when IDHACK is used.

      I don't think there's an incorrect results bug here (similar to the linked ticket) but this is undesirable.

      Repro:

      db.c.find({_id: 5}).max({_id: 1}).explain()
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              misha.ivkov Mikhail Ivkov (Inactive)
              Reporter:
              ian.boros Ian Boros
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: