apple / apple/foundationdb

Client requires a call to `get_read_version()` before being able to read

Open
#4,146 1 comment 0 reactions 1 assignee Claimed by @sfc-gh-anoyes View on GitHub
Dominant language
C++
Stars
16.7k
Forks
1.6k
Avg merge
1d 20h
Merged PRs (30d)
126

Description

If the read version for the very first transaction through a client is manually specified via `set_read_version()`, the client will immediately return with transaction too old. If you create a dummy transaction and call `get_read_version()` on that transaction, all future transactions with a manually specified `set_read_version()` will work as expected.

From a casual inspection, https://github.com/apple/foundationdb/blob/master/fdbclient/DatabaseContext.h#L249 appears to be the offending code.

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.