[SERVER-46583] Make count command use OwnershipFilter instead of CollectionDescription Created: 03/Mar/20  Updated: 29/Oct/23  Resolved: 19/Mar/20

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

Type: Task Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Tommaso Tocci
Resolution: Fixed Votes: 0
Labels: PM-1645-Milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-47103 Add OrphanCleanupPolicy parameter to ... Closed
Gantt Dependency
has to be done after SERVER-45780 Rename getCurrentMetadata to getColle... Closed
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-03-09, Sharding 2020-03-23
Participants:
Linked BF Score: 28

 Description   

Count command must use getOwnershipFilter instead of getCollectionDescription



 Comments   
Comment by Githook User [ 19/Mar/20 ]

Author:

{'name': 'Tommaso Tocci', 'username': 'toto-dev', 'email': 'tommaso.tocci@mongodb.com'}

Message: SERVER-46583 Make count command use OwnershipFilter instead of CollectionDescription
Branch: master
https://github.com/mongodb/mongo/commit/fc50384c81d14e9db5c76385006b94f3eaa5e52b

Comment by Githook User [ 19/Mar/20 ]

Author:

{'name': 'Tommaso Tocci', 'username': 'toto-dev', 'email': 'tommaso.tocci@mongodb.com'}

Message: SERVER-46583 Count command only once even if retried
Branch: master
https://github.com/mongodb/mongo/commit/cd7fda0aa17448ac53a70d6087de6966fa56f9b1

Comment by Githook User [ 12/Mar/20 ]

Author:

{'name': 'Lingzhi Deng', 'username': 'ldennis', 'email': 'lingzhi.deng@mongodb.com'}

Message: Revert "SERVER-46583 Make count command use OwnershipFilter instead of CollectionDescription"

This reverts commit e4a9c689d31e49dc9c5bd0755e390518b6a2f416.
Branch: master
https://github.com/mongodb/mongo/commit/6bed923a9301663072619d006ef1932e379ad311

Comment by Githook User [ 11/Mar/20 ]

Author:

{'name': 'Tommaso Tocci', 'username': 'toto-dev', 'email': 'tommaso.tocci@mongodb.com'}

Message: SERVER-46583 Make count command use OwnershipFilter instead of CollectionDescription
Branch: master
https://github.com/mongodb/mongo/commit/e4a9c689d31e49dc9c5bd0755e390518b6a2f416

Comment by Githook User [ 11/Mar/20 ]

Author:

{'name': 'Tommaso Tocci', 'username': 'toto-dev', 'email': 'tommaso.tocci@mongodb.com'}

Message: SERVER-46583 Filter out failed commands while testing defaults RWC
Branch: master
https://github.com/mongodb/mongo/commit/38370edd76bd5e0fdd73c8efd503e7c17eb721f4

Comment by Tommaso Tocci [ 05/Mar/20 ]

This commit was reverted because SERVER-45779 got merged before this, thus is now  the case that getOwnershipFilter could throw StaleShardVersion when the collection version is unknown. Probably we need to catch the exception propagation and implement a retry logic for the count command.

Comment by Githook User [ 04/Mar/20 ]

Author:

{'name': 'Jacob Evans', 'email': 'jacob.evans@10gen.com'}

Message: Revert "SERVER-46583 Make count command use OwnershipFilter instead of CollectionDescription"

This reverts commit d308ab84524862c644ff8c216b474e53370e3dd0.
Branch: master
https://github.com/mongodb/mongo/commit/5ccc54e6e65f0d79b42c27151bc78b202df25295

Comment by Githook User [ 04/Mar/20 ]

Author:

{'username': 'toto-dev', 'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com'}

Message: SERVER-46583 Make count command use OwnershipFilter instead of CollectionDescription
Branch: master
https://github.com/mongodb/mongo/commit/d308ab84524862c644ff8c216b474e53370e3dd0

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