Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-7109

Retain no longer supported configuration options for backward compatibility

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Blocker - P1 Blocker - P1
    • WT10.0.0, 4.9.0, 4.4.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • 5
    • Storage - Ra 2021-01-25
    • v4.4

      Issue Status as of Feb 16, 2021

      ISSUE DESCRIPTION AND IMPACT
      In MongoDB 4.4.3, WiredTiger fails to parse the de-supported huffman_key option during table creation. This prevents initial syncs and mongorestores of collections created prior to MongoDB 4.4.3, if any collections were created with a user-supplied wiredTiger configuration string.

      In WT-6678, support for Huffman Encoding of keys was removed, but collections created prior to MongoDB 4.4.3 still contain the huffman_key option that was provided at collection creation time. Attempts to re-use this option (via initial sync and mongorestore with options) trigger the bug.

      DIAGNOSIS AND AFFECTED VERSIONS

      This bug exists in MongoDB 4.4.3 and affects collections created in any earlier version. Methods for doing this include:

      • explicit createCollection commands that specify a storageEngine.wiredTiger.configString value that includes huffman_key.
      • any collection creation performed while mongod was running with the --wiredTigerCollectionConfigString parameter enabled.

      For these collections on 4.4.3, initial sync fails and logs a Collection clone failed message with an unknown configuration key: 'huffman_key': Invalid argument error.

      Mongorestore also fails, with:

      error running create command: (BadValue) 22: Invalid argument. wiredtiger_config_validate: config_check_search, 65: unknown configuration key: 'huffman_key': Invalid argument.
      

      REMEDIATION AND WORKAROUNDS

      Upgrade to 4.4.4 to resync or mongorestore. It is not currently possible to change a user-supplied WiredTiger collection configuration string in-place.

      If necessary:

      Original Description

      As part of WT-6678, the huffman_key encoding support is removed along with the configuration options to control it. The older versions of MongoDB < 4.4.3 where the option of huffman_key is configured to all the tables that are created in WiredTiger metadata. Whenever these databases are upgraded to the newer versions like 4.4.3 and above leads to a problem in parsing the old configuration option that is not known.

            Assignee:
            haribabu.kommi@mongodb.com Haribabu Kommi
            Reporter:
            haribabu.kommi@mongodb.com Haribabu Kommi
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: