Ref rewinds observed in high traffic gerrit environments

Abierto
#281 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
38/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
java
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Java
Estrellas
427
Forks
116
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de eclipse-jgit/jgit

Todos los issues de eclipse-jgit/jgit

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.