[SERVER-20400] collStats() should support readConcern majority Created: 14/Sep/15 Updated: 06/Dec/22 Resolved: 15/Apr/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 3.1.7 |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Michael Grundy | Assignee: | Backlog - Storage Execution Team |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Storage Execution
|
| Participants: |
| Description |
|
collStats() doesn't currently support readConcern majority because the stats aren't stored in the snapshots. Considering the document count for the collection, the storage size and the number of indexes are returned by collStats(), those numbers should reflect the majority if requested. |
| Comments |
| Comment by Eric Milkie [ 30/Sep/15 ] |
|
I think it means collect the collStats at snapshot time and store them as snapshots are stored; then retrieve the stored stats if the user requests read concern level majority. |
| Comment by Scott Hernandez (Inactive) [ 14/Sep/15 ] |
|
What do you mean by "reflect the majority"? Can you please give an example of what the output is under what conditions? Do you mean we should count the documents in the snapshot, one by one, for example? |