[SERVER-27567] Queryable NS files are sized incorrectly when filesize % blocksize is not zero Created: 03/Jan/17  Updated: 06/Dec/18  Resolved: 11/Jan/17

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

Type: Bug Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Daniel Gottlieb (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
duplicates SERVER-27512 queryable_mmapv1 can encounter larger... Closed
Operating System: ALL
Sprint: Storage 2017-01-23
Participants:

 Description   

For example, when an NS file is 16MB and the blocksize is 15MB, the queryable downloading code will write out a 30MB file (the 1MB partial block gets interpreted as a full 15MB block). The first 16MB of the resulting file is correct, but the 14MB of "bonus" data corrupts the reading, in this case resulting in:

2016-12-30T15:06:17.187-0500 F STORAGE  [initandlisten] Missing system collection 'random_db.system.namespaces' for database 'random_db'
2016-12-30T15:06:17.187-0500 I -        [initandlisten] Fatal Assertion 34372 at src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp 475



 Comments   
Comment by Ramon Fernandez Marina [ 11/Jan/17 ]

This issue has been addressed with the changes in SERVER-27512, so closing it as a duplicate.

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