[SERVER-35233] Powercycle remote collection validation does not skip views Created: 25/May/18 Updated: 29/Oct/23 Resolved: 29/May/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Testing Infrastructure |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.9, 4.0.3, 4.1.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jonathan Abrahams | Assignee: | Jonathan Abrahams |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | read-only-views | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Backport Requested: |
v4.0, v3.6
|
||||
| Sprint: | TIG 2018-06-04 | ||||
| Participants: | |||||
| Story Points: | 1 | ||||
| Description |
|
The remote collection validation can fail if a view exists. |
| Comments |
| Comment by Githook User [ 21/Sep/18 ] | ||||||||||||||
|
Author: {'name': 'Jonathan Abrahams', 'email': 'jonathan@mongodb.com', 'username': 'hptabster'}Message: (cherry picked from commit 1e9a55f9bba4909732ba0b06bd3547df152864bf) | ||||||||||||||
| Comment by Githook User [ 20/Sep/18 ] | ||||||||||||||
|
Author: {'name': 'Jonathan Abrahams', 'email': 'jonathan@mongodb.com', 'username': 'hptabster'}Message: (cherry picked from commit 1e9a55f9bba4909732ba0b06bd3547df152864bf) | ||||||||||||||
| Comment by Githook User [ 29/May/18 ] | ||||||||||||||
|
Author: {'username': 'hptabster', 'name': 'Jonathan Abrahams', 'email': 'jonathan@mongodb.com'}Message: | ||||||||||||||
| Comment by Jonathan Abrahams [ 25/May/18 ] | ||||||||||||||
|
Improved method (requires PyMongo 3.6):
| ||||||||||||||
| Comment by Max Hirschhorn [ 25/May/18 ] | ||||||||||||||
|
We could also switch to use the pymongo.Database.list_collections() method and specify {type: "collection"} like we do in the validate_collections.js hook. | ||||||||||||||
| Comment by Jonathan Abrahams [ 25/May/18 ] | ||||||||||||||
|
Note - we currently do local validation, not remote. However a self-service user could run into this problem. | ||||||||||||||
| Comment by Jonathan Abrahams [ 25/May/18 ] | ||||||||||||||
|
Fix:
|