Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add query tracing to LegacySession

Đang mở
#243 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 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
35/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
python, rust
Lĩnh vực
backend, databases

Hướng nghiên cứu

Start by reading LegacySession, ResponseFuture.get_query_trace() and get_all_query_traces(), and SessionBuilder.tracing_info_fetch_consistency(); the issue names these entry points but no file paths. First resolve the two stated design decisions about the returned trace type and query_cl behavior, then trace how the current driver fetches query traces. Done means the legacy methods block and return the agreed trace result, with the agreed consistency behavior; the issue does not name tests.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Add query tracing to LegacySession. ResponseFuture.get_query_trace() and get_all_query_traces() raise NotImplementedError now. The legacy API has no async, so the trace fetch must block. Refs #156.

Two design decisions come first.

1. What the trace methods return

  • A new legacy QueryTrace type with a blocking populate() method, similar to cassandra.query.QueryTrace. It wraps our trace fetch. Pro: same shape as the legacy driver. Con: one more type to maintain. (Preferred.)
  • The methods block and return our current QueryTrace. Pro: no new type. Con: no populate(), so legacy code that calls it breaks.

2. What to do with query_cl

query_cl is the consistency level of the queries that read system_traces. Our fetch uses the session setting from SessionBuilder.tracing_info_fetch_consistency() and cannot change it for one call.

  • Raise NotImplementedError and tell the user to set the consistency on the session. Pro: simple and honest. Con: code that passes query_cl breaks. (Preferred for now.)
  • Run the two system_traces queries ourselves with query_cl. Pro: full legacy behaviour. Con: a copy of the Rust driver's fetch logic.
  • Add an unstable Rust driver method that takes the consistency. Pro: one fetch for both APIs. Con: needs a Rust driver change and a dependency bump.
Ngôn ngữ chính
Rust
Star
6
Fork
8
Merge trung bình
3 ngày 21 giờ
Pull request đã merge (30 ngày)
16

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của scylladb/python-rs-driver

Tất cả issue của scylladb/python-rs-driver

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.