feat(txn): add an abort reason field to TxnContext
Maintainer thường phản hồi trong vòng 10 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 30/100
Hướng nghiên cứu
Start with the api.TxnContext definition and the abort handling paths named in the issue: CommitOrAbort and doMutate in edgraph. Read the related work in #9747 and #9866, then trace how unary gRPC errors reach clients. Done means the API design is settled and the proto, server, and four named clients consistently expose the abort reason; this requires coordinated cross-repository changes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Follow-up to #9747 and #9866.
Once the abort reason is carried as structured detail (#9866), promote it to a first-class field on api.TxnContext in the dgo proto, e.g. an AbortReason enum plus an optional detail string. Every language client then gets typed access from generated code instead of status parsing.
This needs a coordinated release:
- proto change and regen in dgraph-io/dgo
- server populates the field in
edgraph(CommitOrAbort,doMutate) - dgraph4j, pydgraph, dgraph-js, and dgo read it
The catch is that gRPC drops the response message when a unary handler returns an error, which is how aborts come back today. The field is only visible if aborts return a TxnContext with a nil error, which changes how every client detects an abort. Settle that before committing to the field.
- Ngôn ngữ chính
- Go
- Star
- 21.8k
- Fork
- 1.6k
- Merge trung bình
- 11 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của dgraph-io/dgraph
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 10 ngày
-
Broken links in the docsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 10 ngày
-
Stale
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
dgraph-io/dgraph#9811 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 10 ngày
-
Stale
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
dgraph-io/dgraph#9810 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 10 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 10 ngày
Tất cả issue của dgraph-io/dgraph
Issue tương tự
-
【文档错误】创建镜像空间步骤中的截图标注与文字描述不一致Đang mởenhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
DaoCloud/DaoCloud-docs#7839 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Support AlienVault OTX API keysĐang mởType: Enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
projectdiscovery/urlfinder#167 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
peterstace/simplefeatures#726 ·
-
area: import bug go good first issue priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
fukubie/StockLlama#69 ·
-
Add `rumpty firewall create|rm`Đang mởenhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
cloverworks-hq/rumpty-cli#95 ·
Maintainer thường phản hồi trong vòng 1 ngày