Duplicate documents while using "Sort" with "Pagination"

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 4.4.0
    • Component/s: Querying
    • None
    • ALL
    • Hide

      Environment with Issue

      Server : Windows Server 2016
      mongo db version: 4.4.0
      driver: 2.10.2

       

      Step

      • Query a collection with more than 50 documents with SortByDescending and Pagination (page size 10)

      Result

      • Duplicate documents are returned by the driver from second page onwards.
      Show
      Environment with Issue Server : Windows Server 2016 mongo db version: 4.4.0 driver: 2.10.2   Step Query a collection with more than 50 documents with SortByDescending and Pagination (page size 10) Result Duplicate documents are returned by the driver from second page onwards.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When we query MongoDB in below environment with SortByDescending and Pagination, MongoCSharp driver is always returning duplicate documents from the second page onwards. We are setting page size as 10.

      Issue is not observed when we remove SortByDescending.

      Environment with Issue

      Server : Windows Server 2016
      mongo db version: 4.4.0
      driver: 2.10.2

       

      Environment without Issue

      Server : Windows Server 2016
      mongo db version: 4.0.6
      driver: 2.10.2

            Assignee:
            Edwin Zhou
            Reporter:
            Ummer Irshad
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: