[SERVER-15856] GridFS chunk size limit is 255KB not 256KB Created: 29/Oct/14  Updated: 29/Oct/14  Resolved: 29/Oct/14

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

Type: Bug Priority: Minor - P4
Reporter: Daniel Alabi Assignee: Daniel Alabi
Resolution: Done Votes: 0
Labels: gridfs, mmapv1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-13331 GridFS chunks collection should lower... Closed
Operating System: ALL
Participants:

 Description   

https://github.com/mongodb/mongo/blob/b9ebf15a7afa4f8db780b6ba06fc796c1ee2816e/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp#L231

The method checkReadAhead assumes that the GridFS chunk size is 256KB. The GridFS chunk size has been changed to 255KB.



 Comments   
Comment by Daniel Alabi [ 29/Oct/14 ]

Reading https://jira.mongodb.org/browse/SERVER-13331
has eliminated my qualms. Thanks.

Comment by Scott Hernandez (Inactive) [ 29/Oct/14 ]

Can you make it clear if you think this is a bug, and why/how?

The 255KB in drivers is there to keep the actual storage to 256KB (quantized) buckets, since there is additional metadata which the drivers may not count in the limit.

Generated at Thu Feb 08 03:39:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.