[SERVER-71759] dataSize command doesn't yield Created: 01/Dec/22 Updated: 29/Oct/23 Resolved: 03/Dec/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 4.2.22, 4.4.18, 5.0.14, 6.0.3, 6.1.0-rc4, 6.2.0-rc1 |
| Fix Version/s: | 4.2.24, 4.4.19, 5.0.15, 6.0.4, 6.2.0-rc3, 6.3.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tommaso Tocci | Assignee: | Tommaso Tocci |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | collection-defrag-bugs | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||
| Backport Requested: |
v6.2, v6.1, v6.0, v5.0, v4.4, v4.2
|
||||||||||||||||||||||||
| Sprint: | Sharding EMEA 2022-12-12 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||||||
| Description |
|
We recently discovered that dataSize command doesn't yield while scanning the index. This means that during its execution it will possibly block all the operations that requires exclusive access to the collection and considering that scanning the index for the entire collection can take long time this could have a huge impact on the customer workload. Recently ( The goal of this ticket to change the yielding policy to YIELD_AUTO for both when the command is called with estimate:true or false |
| Comments |
| Comment by Githook User [ 05/Dec/22 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: (cherry picked from commit 62c6074e3342169809d5c01fd62452c082667c88) |
| Comment by Githook User [ 04/Dec/22 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: (cherry picked from commit 62c6074e3342169809d5c01fd62452c082667c88) |
| Comment by Githook User [ 04/Dec/22 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: (cherry picked from commit 62c6074e3342169809d5c01fd62452c082667c88) |
| Comment by Githook User [ 04/Dec/22 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: |
| Comment by Githook User [ 03/Dec/22 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: (cherry picked from commit 44d81c74e55420619b295490606a6bedb367e3c2) |
| Comment by Githook User [ 02/Dec/22 ] |
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: |