vmware / vmware/splinterdb

`splinter_test --seq-perf` key generation is not coherent between insertion and lookup phases

Open
#360 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
732
Forks
67
PR merge metrics
No merged PRs in 30d

Description

It uses key generation that is based on thread_number and insert_number, but then it uses a global counter with batching to determine the insert_number, so that which thread_number, insert_number pairs are inserted is non-deterministic. As a result, the lookup phase always fails unless a single thread is used for both insertion and lookups.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the splinter_test --seq-perf entry point and trace key generation in both the insertion and lookup phases. Compare how thread_number and insert_number are assigned, then verify with a multi-threaded --seq-perf run that inserted keys are found during lookup.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.