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

Empty find cursor does not include atClusterTime

    XMLWordPrintableJSON

Details

    • Query Execution

    Description

      I noticed that if I perform a find operation that returns no results with snapshot read concern, an atClusterTime value is not returned on the cursor. This makes it difficult to perform multiple queries in the same snapshot if the first query happens to be empty. The aggregate command has the expected behavior and does return an atClusterTime value even if there's no results. This seems like an oversight with the find command.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            kiro.morkos@mongodb.com Kiro Morkos
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: