Batch persisted download writes

Đang mở
#2,418 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
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
backend, databases, performance

Hướng nghiên cứu

Read the specification at docs/issues/open/2418-batch-persisted-download-writes/ISSUE.md and resolve the stated blocker, #1488, before starting. Measure the persistent completed-downloads listener first, then investigate how its writes and shutdown flush are handled. Done means meeting the agreed rate target, satisfying the delta and outcome acceptance criteria across all drivers, and passing relevant tests and linter all.

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

Mô tả

Blocked database performance

Independent follow-up to #2410. Blocked until #1488 is done: measure the persistent completed-downloads listener first, then batch its writes.

Goal

The persistent completed-downloads listener keeps up with the completion rate under load, so its event backlog stays small in normal operation and at shutdown.

Acceptance criteria

  • AC1: From recorded nonzero baselines, per-torrent deltas match each torrent's completions and the global delta matches their sum, on all drivers.
  • AC2: Rate meets the target agreed after T1, with comparable before/after numbers and no unreviewed latency or memory regression.
  • AC3: Rollback, retry, discard, and unknown outcomes are tested and logged distinctly; retry cannot silently double-count an ambiguous commit.
  • AC4: Shutdown flushes the batch within available time, or reports the deadline/failure outcome without claiming persistence completed.
  • linter all exits with code 0; relevant tests pass.

Specification: docs/issues/open/2418-batch-persisted-download-writes/ISSUE.md (added by the spec-only PR).

Ngôn ngữ chính
Rust
Star
532
Fork
56
Merge trung bình
11 giờ 20 phút
Pull request đã merge (30 ngày)
282

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 torrust/torrust-tracker

Tất cả issue của torrust/torrust-tracker

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.