Skip to content

ldb error: Failed: Print write batch error: Invalid argument: PutBlobIndexCF not implemented #14279

@dgpp-programer

Description

@dgpp-programer

Hi, Please help me take a look at this issue
rocksdb v8.11.4
step 1. put 10 kv

  rocksdb::Options base_opts;
  base_opts.create_if_missing = true;
  rocksdb::blob_db::BlobDBOptions blob_opts;
  blob_opts.min_blob_size = 1024;   
  blob_opts.blob_file_size = 16 * 1024 * 1024;
  rocksdb::blob_db::BlobDB* g_blob_db = nullptr;
  rocksdb::Status s = rocksdb::blob_db::BlobDB::Open(base_opts, blob_opts, "../db/", &g_blob_db);
  if (!s.ok()) {
      std::cerr << "Open BlobDB failed! Error: " << s.ToString() << std::endl;
      return -1;
  }
  for (int i = 0; i < 10; i++) {
    std::string key = "key" + std::to_string(i);
    std::string large_value(10*1024, 'a');
    s = g_blob_db->Put(rocksdb::WriteOptions(), key, large_value);
    if (!s.ok()) {
      std::cerr << "Put failed! Error: " << s.ToString() << std::endl;
      return -1;
    }
  }

step 2. run

ldb dump_wal --walfile="../db/000004.log" 

will print:

Failed: Print write batch error: Invalid argument: PutBlobIndexCF not implemented

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions