Ref rewinds observed in high traffic gerrit environments

オープン
#281 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
java
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Java
スター
427
フォーク
116
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eclipse-jgit/jgit のほかの issue

eclipse-jgit/jgit の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。