facebook / facebook/rocksdb

Some keys have unexpected size during DBWithTTL::Open()

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

Description

### Expected behavior
All rows in our DB were inserted with keys of a fixed size. When calling `DBWithTTL::Open()`, all key comparisons should be on keys of the expected size.

### Actual behavior
During `DBWithTTL::Open()`, comparisons are being made on some rows that have keys that are a greater size than expected.

This breaks our custom Comparator which expects keys with a fixed number of bytes. We are not sure where the extra bytes are coming from.

### Steps to reproduce the behavior
Open TTL DB with custom comparator that throws exception if unexpected key size. Insert large volume of rows with fixed key size into TTL DB. Close and re-open the DB. During Open(), comparator will throw exception.

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.