Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-8991

Assert 13440 (bad offset error) should not be logged as uassert

    • Fully Compatible
    • ALL
    • Server 2.7.4, Server 2.7.5, Server 2.7.6

      13440 is about database corruption
      13441 as well

      Unable to find source-code formatter for language: cplusplus. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
          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

            Assignee:
            matt.kangas Matt Kangas
            Reporter:
            gianfranco Gianfranco Palumbo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: