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

Provide an API to obtain a list of necessary config database collections for debugging

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None
    • Sharding EMEA
    • Sharding EMEA 2023-10-30, CAR Team 2023-11-13, CAR Team 2023-11-27, CAR Team 2023-12-11, CAR Team 2023-12-25, CAR Team 2024-01-08, CAR Team 2024-01-22, CAR Team 2024-02-05, CAR Team 2024-02-19
    • 3

    Description

      Currently, users who would like to review the contents of the Sharding config database for debugging purposes can output this database via mongodump (see TOOLS-3374 for an example).

      The collections that can/cannot be output have historically been tracked in hardcoded lists in the mongodump code (and similarly for the mongorestore code). A more robust solution moving forward is to have a Sharding API for obtaining this list of collections, to avoid unexpected auth errors like those described in the TOOLS ticket above, and also to ensure that only the necessary debugging collections are included. This list should ideally include only collections that are safe for both mongodump and mongorestore.

      When connecting to any Server versions that don't have this API, the tools should continue to use hardcoded lists. To avoid auth errors like in TOOLS-3374, it would be great to exclude the collections known to result in auth errors.

      Attachments

        Activity

          People

            aitor.esteve@mongodb.com Aitor Esteve Alvarado
            maria.vankeulen@mongodb.com Maria van Keulen
            Votes:
            2 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated: