MongoDB sort not working properly on Atlas version 4.0.24

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 4.0.24
    • Component/s: None
    • None
    • ALL
    • Hide

      Step

      • Query a collection with more than 150 documents with Pagination (page size 50)

      Result

      • Duplicate documents are returned by the driver from second page onwards.
      Show
      Step Query a collection with more than 150 documents with Pagination (page size 50) Result Duplicate documents are returned by the driver from second page onwards.
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When we query MongoDB in environment Atlas version 4.0.24 with SortBy and Pagination,  returning duplicate documents.

      Repository Query:
      Pageable pageable = PageRequest.of(loop,  50, Sort.by("ClassId"));
      List<Document> findByClassIdIn(List<ObjectId> classIds, Pageable pageable);

            Assignee:
            Unassigned
            Reporter:
            Karthick Thiyagarajan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: