[SERVER-41293] Metadata size is double counted in Document::getApproximateSize() Created: 23/May/19  Updated: 29/Oct/23  Resolved: 30/May/19

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 4.1.14

Type: Bug Priority: Major - P3
Reporter: Ian Boros Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2019-06-03
Participants:

 Description   

We compute the size used in DocumentStorage here and then again here.

The second time, we call getApproximateSize() on the geoNearPoint and searchHighlight metadata fields.

We should change getApproximateSize() to still count the approximate size of geoNearPoint and searchHighlight, but not to double count the space metadata fields use in DocumentStorage.

 

As part of this work, we may be able to revert the "allowDiskUse: true" added in this line as part of SERVER-40555.



 Comments   
Comment by Githook User [ 30/May/19 ]

Author:

{'name': 'Martin Neupauer', 'email': 'martin.neupauer@mongodb.com', 'username': 'MartinNeupauer'}

Message: SERVER-41293 Metadata size is double counted in Document::getApproximateSize()
Branch: master
https://github.com/mongodb/mongo/commit/bf6275237ba6696954e6593dec9ce134aba97e6d

Generated at Thu Feb 08 04:57:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.