[SERVER-8991] Assert 13440 (bad offset error) should not be logged as uassert Created: 15/Mar/13  Updated: 18/Feb/15  Resolved: 19/Sep/14

Status: Closed
Project: Core Server
Component/s: Diagnostics, Storage
Affects Version/s: 2.2.3, 2.4.10
Fix Version/s: 2.7.7

Type: Bug Priority: Minor - P4
Reporter: Gianfranco Palumbo Assignee: Matt Kangas
Resolution: Done Votes: 0
Labels: community-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Server 2.7.4, Server 2.7.5, Server 2.7.6
Participants:

 Description   

13440 is about database corruption
13441 as well

    NOINLINE_DECL void MongoDataFile::badOfs(int ofs) const {
        stringstream ss;
        ss << "bad offset:" << ofs << " accessing file: " << mmf.filename() << " - consider repairing database";
        uasserted(13440, ss.str());
    }

https://github.com/mongodb/mongo/blob/v2.2/src/mongo/db/pdfile.cpp#L390
https://github.com/mongodb/mongo/blob/v2.4/src/mongo/db/pdfile.cpp#L412

uasserted() logs at from level 1



 Comments   
Comment by Githook User [ 19/Sep/14 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-8991 Assert 13440 (bad offset error) should not be logged as uassert

Also remove unused method DataFile::badOfs2 with assert 13441
Branch: master
https://github.com/mongodb/mongo/commit/00e6fb5092a34702fbc4518ef616dd936089f935

Comment by Matt Kangas [ 20/Jun/14 ]

uasserts are still present in master for these assertion codes, as of r2.7.2, but in a new location.

src/mongo/db/storage/mmap_v1/data_file.cpp:67: uasserted(13441, str::stream() << "bad offset:" << ofs
src/mongo/db/storage/mmap_v1/data_file.cpp:73: uasserted(13440, str::stream() << "bad offset:" << ofs

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