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

Cassandra ttl_integration: test_ttl_enable_rejects_asynchronous_gsi asserts a refusal wording #384 replaced; masked by continue-on-error

Đang mở Phù hợp với người mới
#566 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 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
74/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cassandra, github-actions, rust
Lĩnh vực
ci-cd, databases, testing

Hướng nghiên cứu

Bắt đầu với crates/storage-cassandra/tests/ttl_integration.rs::test_ttl_enable_rejects_asynchronous_gsi và so sánh chuỗi con được kiểm tra với async_gsi_ttl_refusal trong crates/storage-cassandra/src/metadata_engine.rs và bài kiểm thử đơn vị liền kề. Chạy cargo test -p extenddb-storage-cassandra --test ttl_integration -- --test-threads=1 với Cassandra 4.1. Công việc hoàn tất khi bài kiểm thử tích hợp mong đợi câu từ chối hiện tại và chạy thành công; sau đó kiểm tra xem bước CI của TTL có lỗi nào khác khi bỏ continue-on-error hay không.

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

Mô tả

backend:cassandra bug

crates/storage-cassandra/tests/ttl_integration.rs::test_ttl_enable_rejects_asynchronous_gsi fails on every run of main, and the cassandra-storage job does not report it because the TTL step runs with continue-on-error: true.

The test asserts

matches!(result, Err(StorageError::Validation(message)) if message.contains("asynchronously propagated GSIs"))

and the engine's refusal (async_gsi_ttl_refusal in crates/storage-cassandra/src/metadata_engine.rs) reads

Time to Live cannot be enabled on table <name>: the Cassandra backend does not support TTL on a table with an asynchronously propagated global secondary index, and index <index> propagates after <n> ms (...)

The substring the test looks for was the wording before 9d132022 (#384) replaced it. The unit test beside the function pins the current wording, so the two tests disagree and only one of them runs in a step whose result counts.

Observed 2026-10-25 on the cassandra-storage job of run 40193137961 (fix/505-deleting-window-answers, no change to this path) and on 2026-10-24 on run 40044685053 (fix/pg-gsi-create-race). Locally against a cassandra:4.1 node at 744ea291: cargo test -p extenddb-storage-cassandra --test ttl_integration -- --test-threads=1 gives 26 passed, 1 failed, 1 ignored, this test the failure, on two runs.

Fix: change the asserted substring to the current wording (asynchronously propagated global secondary index) or call async_gsi_ttl_refusal for the expected text. Separately, the continue-on-error: true on the TTL step cites #338, which is the merged in-tree storage PR rather than an open flake issue; with this test corrected, the step should be run once with the flag removed to see whether anything else in the binary still fails under CI load.

Ngôn ngữ chính
Rust
Star
517
Fork
60
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
25

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

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 ExtendDB/extenddb

Tất cả issue của ExtendDB/extenddb

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.