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

WT command line tool dump command does not work properly when using both -j and -k

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Engines
    • StorEng - Defined Pipeline

      For the dump command in the WT command line tool, the -j option specifies that the output should be in JSON format, while the -k option allows searching for a specific key. Both of these options seem to work correctly on their own, but attempting to combine them results in a strange error partway through the dump:

      ❯ build/install/bin/wt -h /data/db -r dump -j -k table:_mdb_catalog sizeStorer
      {
          "WiredTiger Dump Version" : "1 (11.2.0)",
          "table:sizeStorer" : [
              {
                  "config" : "access_pattern_hint=none,allocation_size=4KB,app_metadata=,assert=(commit_timestamp=none,durable_timestamp=none,read_timestamp=none,write_timestamp=off),block_allocation=best,block_compressor=,cache_resident=false,checksum=on,colgroups=,collator=,columns=,dictionary=0,encryption=(keyid=,name=),exclusive=false,extractor=,format=btree,huffman_key=,huffman_value=,ignore_in_memory_cache_size=false,immutable=false,import=(compare_timestamp=oldest_timestamp,enabled=false,file_metadata=,metadata_file=,repair=false),internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=u,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=0,log=(enabled=true),lsm=(auto_throttle=true,bloom=true,bloom_bit_count=16,bloom_config=,bloom_hash_count=8,bloom_oldest=false,chunk_count_limit=0,chunk_max=5GB,chunk_size=10MB,merge_custom=(prefix=,start_generation=0,suffix=),merge_max=15,merge_min=0),memory_page_image_max=0,memory_page_max=5MB,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,source=\"file:sizeStorer.wt\",split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,tiered_storage=(auth_token=,bucket=,bucket_prefix=,cache_directory=,local_retention=300,name=,object_target_size=0),type=file,value_format=u,verbose=[],write_timestamp_usage=none",
                  "colgroups" : [],
                  "indices" : []
              },
              {
      [1699371076:630918][2228712:0xffff8f606f80], wt, WT_CURSOR.set_key: [WT_VERB_DEFAULT][ERROR]: int __wt_json_token(WT_SESSION *, const char *, int *, const char **, size_t *), 567: unknown keyword "table" in JSON: Invalid argument
      [1699371076:630941][2228712:0xffff8f606f80], wt, file:sizeStorer.wt, WT_CURSOR.search_near: [WT_VERB_DEFAULT][ERROR]: int __wt_cursor_kv_not_set(WT_CURSOR *, _Bool), 256: requires key be set: Invalid argument
      wt: table:sizeStorer: cursor.search_near: Invalid argument
                  "data" : [%
      

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: