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

IndexConsistency::_indexKeyCount expects signed comparison but stores unsigned value

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • ALL
    • Execution Team 2019-07-29

    Description

      See here. _indexKeyCount stores map of hashed KeyString values to count. We increment this count for each key found while scanning a collection and decrement for each key we find in an associated index. We then expect the final count to be 0 if consistent, > 0 if the collection has a greater number of entries and < 0 if the index has a greater number of entries. Given this we should store the count in a signed integer rather than the current uint32_t.

      Attachments

        Activity

          People

            geert.bosch@mongodb.com Geert Bosch
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: