facebook / facebook/rocksdb

GeneralTableTest.ApproximateOffsetOfCompressed test case failed in table_test

Open
#9,910 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
32.1k
Forks
6.9k
Avg merge
32m
Merged PRs (30d)
1

Description

I ran the unit tests for Rocksdb version 6.29.5 and found that one test case failed:

```
[ RUN ] GeneralTableTest.ApproximateOffsetOfCompressed
skipping xpress and xpress compression tests
Value 3529 is not in range [2000, 3525]
/rocksdb/table/table_test.cc:3842: Failure
Value of: Between(c.ApproximateOffsetOf("k03"), 2000, 3525)
Actual: false
Expected: true
[ FAILED ] GeneralTableTest.ApproximateOffsetOfCompressed (0 ms)
```

I looked at the code and found that it was related to the compression algorithm. I successfully installed all the compression algorithms tested, and the version information is as follows:

```
snappy V1.1.7
zlib V1.2.11
bzip2 V1.0.8
zstd V1.4.4
lz4 V1.9.1
```

I guess the failure of this test case is related to the effect of the compression algorithm, is that right?

I'd appreciate it if someone could help me out!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.