Open mbspng opened 4 weeks ago
The bug is that using a key expression in the storage config for RocksDB that ends in **
will cause this. Is this expected? Other storages can have **
in the key expression.
So my config was
{
plugins: {
rest: { // activate and configure the REST plugin
http_port: 8000 // with HTTP server listening on port 8000
},
storage_manager: { // activate and configure the storage_manager plugin
volumes: {
rocksdb: {
}
},
storages: {
rocksdb: {
// the key expression this storage will subscribe to
key_expr: "point_clouds/**",
// this prefix will be stripped from the received key when converting to database key.
// i.e.: "demo/example/a/b" will be stored as "a/b"
// strip_prefix: "demo/example",
volume: {
id: "rocksdb",
// the RocksDB database will be stored in this directory (relative to ${ZENOH_BACKEND_ROCKSDB_ROOT})
dir: "example",
// create the RocksDB database if not already existing
create_db: true
}
}
}
}
}
}
And I changed it to
{
plugins: {
rest: { // activate and configure the REST plugin
http_port: 8000 // with HTTP server listening on port 8000
},
storage_manager: { // activate and configure the storage_manager plugin
volumes: {
rocksdb: {
}
},
storages: {
rocksdb: {
// the key expression this storage will subscribe to
key_expr: "point_clouds/store",
// this prefix will be stripped from the received key when converting to database key.
// i.e.: "demo/example/a/b" will be stored as "a/b"
// strip_prefix: "demo/example",
volume: {
id: "rocksdb",
// the RocksDB database will be stored in this directory (relative to ${ZENOH_BACKEND_ROCKSDB_ROOT})
dir: "example",
// create the RocksDB database if not already existing
create_db: true
}
}
}
}
}
}
by dropping the **
. Then the error went away and I could successfully query the RocksDB.
Hello @mbspng. Thank you for investigating and reporting this issue. I will address it asap 👍
Describe the bug
Publishing data to RocksDB results in
Corruption: unknown checksum type 4
when querying. I found this thread, which might be related: https://bugzilla.redhat.com/show_bug.cgi?id=2193399To reproduce
Script to put data into DB
Script to query database
Error
System info
Ubuntu 22.04