graphprotocol / graphprotocol/graph-node
[Bug] Failed query is not logged
Đang mở
Chưa có ai nhận issue này.
bug
Stale
- Ngôn ngữ chính
- Rust
- Star
- 3.2k
- Fork
- 1.1k
- Merge trung bình
- 4 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
Bug report
For some failed queries, graph-node fails silently, not logging any error.
Ex.:
`http post http://localhost:8080/subgraphs/id/QmQohvyxLZLpwouzPF61kTzmLjgawmt6qDWZrPndz1M9EQ query='query MyQuery { _meta { block { number } } }'`
would return
`{
"errors": [
{
"message": "Store error: database unavailable"
}
]
}
`
but there are no indication of an error related to this query in the graph-node logs, making
the detection of the error very difficult on a sharded production environment.
`graph-node v0.29.0`
Relevant log output
no log output
IPFS hash
No response
Subgraph name or link to explorer
No response
Some information to help us out
- Tick this box if this bug is caused by a regression found in the latest release.
- Tick this box if this bug is specific to the hosted service.
- I have searched the issue tracker to make sure this issue is not a duplicate.
OS information
None
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.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện truy vấn _meta bị lỗi đối với graph-node và theo dõi cách các lỗi GraphQL của nó được xử lý và ghi log. Issue không nêu tệp mã nguồn hay bài kiểm thử nào; được xem là hoàn tất khi một truy vấn bị lỗi tạo ra một mục lỗi hữu ích trong log của graph-node nhưng vẫn trả về response đã báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- graphql, rust
- Lĩnh vực
- api, backend, observability
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100