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

Add new compact skeleton for mongod

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.3.0
    • None
    • None
    • None
    • Fully Compatible
    • Security 2022-02-07, Security 2022-02-21
    • 33

    Description

      Add skeletons for compactStructuredEncryptionData to mongod and mongos. Also add support for initial rename collection in both mongod and mongos. There is likely the opportunity for a lot of code reuse.

      Here is the IDL that describes compactStructuredEncryptionData:

      structs:
       
          ECOCStats:
              description: "Stats about records in ECOC compact touched"
              fields:
                  read : exactInt64
                  deleted : exactInt64
       
          ECStats:
              description: "Stats about records in ECC & ESC compact touched"
              fields:
                  read : exactInt64
                  inserted : exactInt64
                  updated : exactInt64
                  deleted : exactInt64
       
          compactStats:
              description: "Stats about records in ECC, ECOC and ESC compact touched"
              fields:
                  ecoc: ECOCStats
                  ecc: ECStats
                  esc: ECStats
       
       
          CompactStructuredEncryptionDataCommandReply:
              description: 'Reply from the {compactStructuredEncryptionData: ...} command'
              strict: true
              fields:
                  stats: compactStats
       
      commands:
          compactStructuredEncryptionData :
              description: "Parser for the 'compactStructuredEncryptionData' Command"
              command_name: compactStructuredEncryptionData
              api_version: ""
              namespace: concatenate_with_db
              strict: true
              reply_type: CompactStructuredEncryptionDataCommandReply
              fields:
                  compactionTokens:
                      description: "Map of field path to EOCToken"
                      type: object
      

      A new action type “compactStructuredEncryptionData” will be added and this will be included in “readWriteAnyDB”, and “dbOwner”. This actionType will not be added to “dbAdmin” since only the owner of data has the ability to create the compaction tokens which a user in generic dbAdmin may not have the ability to.

      Attachments

        Activity

          People

            erwin.pe@mongodb.com Erwin Pe
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: