Skip to content

[BUG]: Upsert that sets a uid array consisting of a large (>~600) number of elements fails if the predicate was star deleted in the same mutation #8324

@matthewmcneely

Description

@matthewmcneely

What version of Dgraph are you using?

v21.03.2 (also fails in v21.12)

Tell us a little more about your go-environment?

go version go1.19 darwin/arm64

Have you tried reproducing the issue with the latest release?

Yes

What is the hardware spec (RAM, CPU, OS)?

Mac Mini (M1, 2020) 16GB RAM, Docker Desktop 4.3.0 (71786), Engine: 20.10.11, Compose: 1.29.2

What steps will reproduce the bug?

When a DQL upsert mutation clears a list of uids in the mutate block with a star delete and then resets uids into that predicate, an inconsistent number of those uids are assigned, IF the number of uids is more than ~600. The issue only occurs when the set is actually cleared (the update path, not the insert path)

Originally reported on the forum here.

Further refined to its simplest form here https://github.com/matthewmcneely/dgraph-v21.03-sandbox/tree/upsert-issue-minimal-reproducable-state

Expected behavior and actual result.

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaledgraphIssue or PR created by an internal Dgraph contributor.kind/bugSomething is broken.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions