Ref rewinds observed in high traffic gerrit environments

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

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
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
java
Lĩnh vực
backend

Hướng nghiên cứu

Start in org.eclipse.jgit.storage.file.RefDirectory and RefTransaction: trace where the fast-forward check happens relative to the lock/compare-and-swap write on a ref log, since a meta ref can pass the check then be overwritten by a concurrent update. Reproduce with concurrent RefUpdate/RefTransaction threads in the org.eclipse.jgit.test storage.file package. Done when the losing update either throws LockFailureException or is applied after the winner in order, plus a regression test proving no rewind.

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

Mô tả

Version

6.10

Operating System

Linux/Unix

Bug description

In a high traffic gerrit environment we are observing rare cases when refs get rewinded.

Actual behavior

In high traffic gerrit environment when multiple actions happen on a change, possibly a comment/vote and them submitting the change, We did see through our logs that meta ref did update to point to new commit created using submit strategy and then was rewinded to reflect the other meta ref update.

Expected behavior

Concurrent updates should either fail with a lock failure or should be applied in correct order.

Relevant log output

Other information

No response

Ngôn ngữ chính
Java
Star
427
Fork
116
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 eclipse-jgit/jgit

Tất cả issue của eclipse-jgit/jgit

Issue tương tự

Thêm issue về Java

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.