cayleygraph / cayleygraph/cayley

memstore is not threadsafe

Open
#779 3 comments 0 reactions 0 assignees View on GitHub
backends
Dominant language
Go
Stars
15.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Tried running memstore example with -race and and got errors.

After submitting PR #780 in an attempt to make memstore threadsafe, discovered that it can be threadsafe but not consistent for readers when a writer is updating it (by deleting, adding).

Now I believe that the issue is not that current memstore is not threadsafe, but there is no concurrent memstore.

Contributor guide

Open the contributing guide

Research direction

Start with the memstore example and run it with -race to reproduce the reported errors. Review PR #780 and the issue discussion to understand the distinction between thread safety and consistent concurrent reads; done would require a defined concurrent memstore design, which the issue does not specify.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.