[SERVER-15085] rocks storage fails when restarting Created: 28/Aug/14  Updated: 28/Apr/15  Resolved: 29/Aug/14

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

Type: Bug Priority: Major - P3
Reporter: Siying Dong Assignee: Unassigned
Resolution: Done Votes: 0
Labels: pull-request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-14352 prototype and implement rocksdb stora... Closed
depends on SERVER-13635 Clean up the storage abstraction layer Closed
Related
related to SERVER-15161 RocksCursor::_reverseLocate() Should ... Closed
related to SERVER-15271 rocks engine doesn't return capped in... Closed
related to SERVER-15232 Rocks Storage Engine to support Index... Closed
is related to SERVER-15055 rocks: unit testjstests/core/apitest_... Closed
is related to SERVER-15057 RocksStorage: deadlock when dropping ... Closed
Tested
Operating System: ALL
Steps To Reproduce:

Run mongod, after booting restart it.

Participants:

 Description   

When Mongo runs on rocks engine, it fails to restart an existing DB with following exception:

2014-08-28T14:35:47.160-0700 E STORAGE [initandlisten] rocks error: NotFound:
2014-08-28T14:35:47.160-0700 I [initandlisten] Invariant failure false src/mongo/db/storage/rocks/rocks_engine.cpp 561



 Comments   
Comment by Githook User [ 29/Aug/14 ]

Author:

{u'username': u'siying', u'name': u'sdong', u'email': u'siying.d@fb.com'}

Message: SERVER-15085 Fix rocks storage restart failure caused by using rockdb::Slice to refer to a temporary string.

rocksdb::Slice doesn't own the data it points.
A string needs to be kept to own the key.

Closes #761

Signed-off-by: Benety Goh <benety@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/6e98f5003ff06369aec221c9c9dda264d4dee013

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