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

Add extra validate logging for unit tests for debug proposes

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.4.0-rc0, 4.7.0
    • None
    • Storage
    • None
    • Fully Compatible
    • v4.4
    • Execution Team 2020-03-09
    • 0

    Description

      We have some validate unit tests that are rarely failing to find data corruption. The entries logged after the validate cmd are showing the data corruption that should have been found. The next step is adding logging of the collection and index table entries that validate sees as validate sees the entries. These log messages can be specially toggled on for unit tests only.

      Validate is failing to see any data corruption after the first lighter-weight round of validation. There's a second round that collects more information if the first round finds corruption. The test failures show that only the first round runs, so nothing is found in that first round. We need logging for the first round of validation, to narrow down where the error takes place in the code. The first round of validation uses buckets of counters, incrementing for collection table entries and then decrementing for index table entries.

      Attachments

        Activity

          People

            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: