Cassandra: route coordinators to the configured datacenter
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Read crates/storage-cassandra/src/engine.rs and the session builder in crates/storage-cassandra/src/lib.rs, then check how datacenter is exposed in crates/storage-cassandra/src/config.rs. The issue points to cdrs-tokio 9.0.2's topology-aware load balancing and node distance evaluator; verify their API and how they use the configured datacenter. Done means coordinators route to that datacenter and the described local consistency operations no longer fail when remote peers are discovered.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
The Cassandra backend creates every keyspace with NetworkTopologyStrategy in the one datacenter named by datacenter, and since #591 (the fix for #560) runs every data-path statement at LOCAL_QUORUM or LOCAL_ONE. The session uses RoundRobinLoadBalancingStrategy with the driver's default node distance evaluator, which treats every node the driver discovers from system.peers_v2 as local. A coordinator in a datacenter that holds no replica of the keyspace evaluates LOCAL_QUORUM and LOCAL_ONE against its own datacenter, finds no replica, and answers unavailable; the driver retries once on the next node and then fails the request.
Expected
Statements are coordinated by nodes in datacenter. cdrs-tokio 9.0.2 has TopologyAwareLoadBalancingStrategy and TopologyAwareNodeDistanceEvaluator::new(local_dc), which route to the local datacenter and treat remote nodes as remote.
Today
The datacenter field doc, the differences table, the high availability design and the upgrade manual tell the operator to run ExtendDB against contact points whose peers are all in datacenter. Before #591 the LOCAL_QUORUM batches, the query_lwt paths and the quorum reads already failed from such a coordinator; the reads, the OCC lightweight transactions and the plain delete succeeded at ONE.
Where
crates/storage-cassandra/src/engine.rs(RoundRobinLoadBalancingStrategy::new())crates/storage-cassandra/src/lib.rs(the session builder)crates/storage-cassandra/src/config.rs(datacenter)
- Ngôn ngữ chính
- Rust
- Star
- 517
- Fork
- 60
- Merge trung bình
- 4 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 37
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 ExtendDB/extenddb
-
Độ khó 2/5 3-5 ngày Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 4 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
ExtendDB/extenddb#658 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
backend:postgresql bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 4 ngày
-
backend:mongodb bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của ExtendDB/extenddb
Issue tương tự
-
good first issue help wanted r-docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
servo/rust-smallvec#824 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
priority middle
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
KATO-Hiro/AtCoderClans#12940 ·
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 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
o8 next debug build aborts on Glass to Dark appearance switch (nil identifier messaged before check)Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
hurttlocker/o8#5112 ·