-
Type: New Feature
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.2.2
-
Component/s: None
-
None
-
Storage Engines
At the moment, this setting is mentioned in the WiredTiger documentation: http://source.wiredtiger.com/mongodb-4.0/compression.html
But it cannot be applied in real practice:
coll_obj = db.create_collection("test", storageEngine={'wiredTiger': {'configString': 'block_compressor=zstd,compression_level=22'}})
Traceback (most recent call last): File "/home/platon/_0_Диссертация/00_Скрипты/000_ld-tools-master/backend/create_intgen_db.py", line 184, in <module> create_intgen_db(client) File "/home/platon/_0_Диссертация/00_Скрипты/000_ld-tools-master/backend/create_intgen_db.py", line 141, in create_intgen_db 'block_compressor=zstd,compression_level=22'}}) File "/home/platon/miniconda3/lib/python3.7/site-packages/pymongo/database.py", line 411, in create_collection read_concern, session=s, **kwargs) File "/home/platon/miniconda3/lib/python3.7/site-packages/pymongo/collection.py", line 184, in __init__ self.__create(kwargs, collation, session) File "/home/platon/miniconda3/lib/python3.7/site-packages/pymongo/collection.py", line 264, in __create collation=collation, session=session) File "/home/platon/miniconda3/lib/python3.7/site-packages/pymongo/collection.py", line 250, in _command user_fields=user_fields) File "/home/platon/miniconda3/lib/python3.7/site-packages/pymongo/pool.py", line 613, in command user_fields=user_fields) File "/home/platon/miniconda3/lib/python3.7/site-packages/pymongo/network.py", line 167, in command parse_write_concern_error=parse_write_concern_error) File "/home/platon/miniconda3/lib/python3.7/site-packages/pymongo/helpers.py", line 159, in _check_command_response raise OperationFailure(msg % errmsg, code, response) pymongo.errors.OperationFailure: 22: Invalid argument. [1579647776:829331][874:0x7f0f8cb3e700], wiredtiger_config_validate: config_check_search, 65: unknown configuration key: 'compression_level': Invalid argument.
- is depended on by
-
SERVER-49405 Ability to pass --fast flag to zstd
- Backlog
- is duplicated by
-
SERVER-56508 Ability to customize Zstandard compression level
- Closed