[CDRIVER-3666] Use sort when verifying contents of outcome collections Created: 08/May/20  Updated: 28/Oct/23  Resolved: 08/Jul/20

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.17.0-rc0, 1.17.0

Type: Improvement Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CDRIVER-3535 Reduce Client Time To Recovery On Top... Closed

 Description   

Description of Drivers Ticket:

Because the server doesn't guarantee that documents returned by a find call will be in inserted order, spec test runners should be updated to do one of the following when verifying the contents of a collection:

  1. Compare the find results against the data in the spec test with no ordering assumptions
  2. Use a sort of _id:1 when doing the find
    See DRIVERS-1196 for updated details.


 Comments   
Comment by Githook User [ 11/Jul/20 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CDRIVER-3666 sort outcome collection
Branch: r1.17
https://github.com/mongodb/mongo-c-driver/commit/d277e2cd868c265336285f0ad940b40072b457c2

Comment by Githook User [ 08/Jul/20 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CDRIVER-3666 sort outcome collection
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/909f3817996af59671e590377157c019c13fd935

Comment by Kevin Albertson [ 08/Jul/20 ]

Included in this PR: https://github.com/mongodb/mongo-c-driver/pull/648

Comment by Kevin Albertson [ 19/May/20 ]

Needed for streamable ismaster integration tests.

Generated at Wed Feb 07 21:18:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.