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

Abstract out similar code between data consistency/extra index keys check and make error handling consistent

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Replication
    • Repl 2024-02-19
    • 6

    Description

      We should abstract out similar code between data consistency/extra index keys check, including error handling (for things like checking for stepdown, ErrorCodes::LockTimeout, adding handling for retryable errors in extra index keyds check)

      As part of this we should refactor the code to only check for the IndexNotFound/NamespaceNotFound/CommandNotSupportedOnView errors in one place/propogate it all up to one location, since right now in the extra index keys path we check for IndexNotFound in many locations.

      We should also make sure that all the IndexNotFound checks are correct (in dbcheck_extra_index_keys.js)

      Attachments

        Activity

          People

            xuerui.fa@mongodb.com Xuerui Fa
            huayu.ouyang@mongodb.com Huayu Ouyang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: