tests: two race tests share one boto3 client across threads and failed with TLSV1_ALERT_DECODE_ERROR

Đang mở Phù hợp với người mới
#894 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 4 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
76/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ệ
aws, python, rust

Hướng nghiên cứu

Đọc race fixture trong tests/test_update_item_creates_key.py và phần thiết lập worker trong tests/test_transact_write_conflict.py, sau đó so sánh chúng với phần thiết lập client riêng cho từng writer trong tests/test_index_rows_track_base_item.py và bản sửa lỗi được mô tả trong #392. Cấp cho mỗi writer đang chạy đồng thời một client riêng và chạy các bài kiểm thử bị ảnh hưởng; hoàn tất khi cả hai bài kiểm thử race đều chạy qua mà các luồng writer không dùng chung một nhóm kết nối client.

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

Mô tả

ci:stability

Two cassandra-pytest jobs failed with this error from the test client:

botocore.exceptions.SSLError: SSL validation failed for https://127.0.0.1:18443/ [SSL: TLSV1_ALERT_DECODE_ERROR] tlsv1 alert decode error
  • job 126933918802, fix/367-table-name-validation, 4 November 23:20 UTC: tests/test_transact_write_conflict.py::test_opposite_order_transactions_cancel_instead_of_failing, the test of #879
  • job 127366989897, fix/sigv4-scope-date-first, 5 November 16:25 UTC: four tests of tests/test_update_item_creates_key.py, at the setup of the race fixture

In both files, every writer thread uses one raw_client fixture object. The race fixture in test_update_item_creates_key.py starts 2 × WRITERS threads on one raw_client. The workers in test_transact_write_conflict.py share its raw_client in the same way.

#392 found this error when threads shared one client in test_rfc0003_concurrency.py. As #392 explains, two threads that interleave on one TLS connection corrupt its record stream, and the request fails with this error. #392 gave each thread its own client. test_index_rows_track_base_item.py also builds one client per racing writer, so that the writers share no connection pool.

These were 2 failures in 297 completed cassandra-pytest jobs between 3 November 00:00 UTC and 6 November 15:07 UTC. I have not reproduced them.

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

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.