Block cache trace analyzer block_size != access.block_size
- Dominant language
- C++
- Stars
- 32.1k
- Forks
- 6.9k
- Avg merge
- 32m
- Merged PRs (30d)
- 1
Description
> Note: Please use Issues only for bug reports. For questions, discussions, feature requests, etc. post to dev group: https://groups.google.com/forum/#!forum/rocksdb or https://www.facebook.com/groups/rocksdb.dev
I was running the code example following
[block cache trace analyzer wiki](https://github.com/facebook/rocksdb/wiki/Block-cache-analysis-and-simulation-tools#trace-format).
But this command fails.
```
./block_cache_trace_analyzer \
-block_cache_trace_path=/tmp/binary_trace_test_example \
-human_readable_trace_file_path=/tmp/human_readable_block_trace_test_example
```
### Expected behavior
The analyzer successfully outputs analyzing files.
### Actual behavior
The following bugs
```
block_cache_trace_analyzer_tool: /home/bily/pm4_backup/tracing/rocksdb/tools/block_cache_analyzer/block_cache_trace_analyzer.h:72: void rocksdb::BlockAccessInfo::AddAccess(cons
t rocksdb::BlockCacheTraceRecord&, uint64_t): Assertion `block_size == access.block_size' failed.
```
### Steps to reproduce the behavior
```
./db_bench --benchmarks="fillseq" \
--key_size=20 --prefix_size=20 --keys_per_prefix=0 --value_size=100 \
--cache_index_and_filter_blocks --cache_size=1048576 \
--disable_auto_compactions=1 --disable_wal=1 --compression_type=none \
--min_level_to_compress=-1 --compression_ratio=1 --num=10000000
```
```
./db_bench --benchmarks="readrandom" --use_existing_db --duration=60 \
--key_size=20 --prefix_size=20 --keys_per_prefix=0 --value_size=100 \
--cache_index_and_filter_blocks --cache_size=1048576 \
--disable_auto_compactions=1 --disable_wal=1 --compression_type=none \
--min_level_to_compress=-1 --compression_ratio=1 --num=10000000 \
--threads=16 \
-block_cache_trace_file="/tmp/binary_trace_test_example" \
-block_cache_trace_max_trace_file_size_in_bytes=1073741824 \
-block_cache_trace_sampling_frequency=1
```
```
./block_cache_trace_analyzer \
-block_cache_trace_path=/tmp/binary_trace_test_example \
-human_readable_trace_file_path=/tmp/human_readable_block_trace_test_example
```
Contributor guide
Assessment
This issue has not been assessed yet.