dgraph-io / dgraph-io/dgraph

Adding a Count Index to a Predicate Causes Transaction Aborts when writing concurrently

Open
#9,683 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
21.8k
Forks
1.6k
Avg merge
2d 5h
Merged PRs (30d)
9

Description

Adding a count index to a predicate causes transaction aborts when a client is writing to the same predicate concurrently in two or more different threads.

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

The report provides no file, test, or reproduction steps. Start by reproducing concurrent writes to the same predicate with a count index, then trace the transaction abort; done means those concurrent writes complete without unexpected aborts and the regression is covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
database, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.