Skip to content

Return ErrAborted in Mutate()  #46

@srfrog

Description

@srfrog

The Mutate() method should return y.ErrAborted when the transaction is aborted for retry. Currently it is returning the gRPC status error which is difficult to catch by a caller. In comparison, Commit() is correctly returning y.ErrAborted when it happens.

Reference: https://discuss.dgraph.io/t/how-to-catch-erraborted-in-dgraph-go-client/4141/4

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions