[SERVER-57080] MongoDB sort not working properly on Atlas version 4.0.24 Created: 20/May/21  Updated: 20/May/21  Resolved: 20/May/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.0.24
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Karthick Thiyagarajan Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

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.
Participants:

 Description   

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);



 Comments   
Comment by Dmitry Agranat [ 20/May/21 ]

Hi karthick@helloparent.in,

The SERVER project is for bugs and feature suggestions for the MongoDB server. To inform our Atlas team of issues you are having or feature requests you'd like to suggest, please reach out to the Atlas support team via Intercom. You can do this by clicking the round green button at the bottom right of the cluster view page in Atlas.

Regards,
Dima

Generated at Thu Feb 08 05:40:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.