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

storage-postgres: UpdateTable during the DELETING window waits up to 3 s behind the delete poller's lock

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

Maintainer thường phản hồi trong vòng 2 ngày

@LeeroyHannigan đang làm issue này rồi.

Từ ngày 25/10/2026.

  • #569 của @LeeroyHannigan — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

backend:postgresql

Summary

On PostgreSQL, an UpdateTable sent during a table's DELETING window can take up to 3 s to be refused. Measured on #550's branch with the window held by a lock on the data table: twelve UpdateTable calls at 0.5 s spacing, ten refused in 2 to 5 ms, two in 1256 ms and 2922 ms. Every answer was the right one (ResourceInUseException, Table is being deleted).

Cause

The delete poller claims the DELETING catalog row FOR UPDATE SKIP LOCKED (crates/storage-postgres/src/worker_store.rs:73) and holds it while its data drop waits out the 3 s lock_timeout. update_table (crates/storage-postgres/src/update_table.rs:99) selects the row FOR UPDATE, so a call that lands during a poller attempt waits for the attempt to time out before it reads the status and refuses.

Fix shape

Read the status with FOR SHARE or without a lock before taking FOR UPDATE, or have the poller release the row lock before the drop attempt. A test that holds the row as the poller does and asserts an UpdateTable refusal under 100 ms.

Found while reviewing #505.

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.