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

Collection validate erroneously warns about inconsistent validation results

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.2.0-rc3
    • 3.2.0-rc2
    • Storage
    • None
    • Fully Compatible
    • ALL
    • Hide

      var coll = db.foo;
      coll.drop();
      coll.insert({});
      coll.insert({});
      coll.validate();
      

      Show
      var coll = db.foo; coll.drop(); coll.insert({}); coll.insert({}); coll.validate();
    • QuInt C (11/23/15)

    Description

      The values in the sizeStorer are compared to the results of running WiredTiger validate. If the sizeStorer hasn't been synced, it may give an erroneous warning.

      Here's the server output when running the short script in this ticket:

      2015-11-06T09:50:39.986-0500 I COMMAND  [conn1] CMD: validate test.foo
      2015-11-06T09:50:39.998-0500 W STORAGE  [conn1] table:collection-0-1346335310766002818: Existing data in size storer (1 records 22 bytes) is inconsistent with validation results (2 records 44 bytes). Updating size storer with new values.
      

      Attachments

        Activity

          People

            dan@mongodb.com Daniel Pasette (Inactive)
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: