Add raft scenarios for uncovered retirement and reconfiguration branches in raft.h
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- cpp
Línea de trabajo
Start by reading src/consensus/raft/raft.h and the existing tests in tests/raft_scenarios/, especially scenarios added by #8433. Trace the three retirement, vote, and rollback branches and model the required multi-node interleavings. Done means scenarios cover all three branches and pass the CI trace validation against the TLA+ specification.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
NOTE: This type of issue is reserved for the project team. If you are not a member of the team, please use either the bug or feature templates.
What is the motivation for this task
#8433 adds negative-path raft_test cases for src/consensus/aft/raft.h. Its description lists three retirement and reconfiguration interleavings that are reachable, but whose branches are still not covered by raft_test or raft_scenario_test:
commit(): a node whose retirement is Signed commits an index belowretirement_committable_idx, soidx >= retirement_committableis false.recv_propose_request_vote(): aProposeRequestVotereaches a node whose retirement is committed, so!is_retired_committed()is false.rollback(): a rollback removes every configuration, so the configuration rollback loop ends becauseconfigurationsis empty.
These need multi-node interleavings, so they are better written as scenarios in tests/raft_scenarios/, which CI also trace-validates against the TLA+ spec, than as more raft_test fixtures. This was raised in review of #8433 and deferred from it.
Dependencies
None blocking. Measuring the coverage gain is simplest once #8433 has merged.
Describe impact if task is not completed
These raft.h branches stay untested by the consensus unit and scenario tests, so a regression in them would not be caught there, and they keep counting as missed branches in raft.h coverage.
- Lenguaje dominante
- C++
- Estrellas
- 876
- Forks
- 264
- Merge medio
- 1 d 12 h
- PR fusionados (30 d)
- 107
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/CCF
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 8/100
Los mantenedores suelen responder en 1 día
-
Backup node aborts on `CompactedVersionConflict` when reading the Nodes tablePosiblemente ocupada @achamayou la tomó hoy. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
microsoft/CCF#8650 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
raft.h hardeningAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
microsoft/CCF#8606 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de microsoft/CCF
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
eclipse-score/lifecycle#929 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
colbymchenry/codegraph#3223 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
firefox-devtools/profiler#6436 · 1 comentario ·
Los mantenedores suelen responder en 1 día