Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Berkeley test failing: testConsistencyEnforcement

Abierto
#4,153 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
java

Línea de trabajo

Comienza con BerkeleyGraphTest.java en la línea 94 y sigue el stack trace hasta ConfigOption.java:243. Compara cómo se descubre testConsistencyEnforcement antes y después de la actualización de JUnit, y determina por qué provoca una NullPointerException; se considera terminado cuando la prueba tiene un resultado definido, satisfactorio o excluido intencionadamente, sin ocultar el fallo subyacente.

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

Descripción

area/testing kind/bug/possible storage/berkeleydb

This test is failing in #4135 which simply updates JUnit. However, this test already seems to fail on master, but for some reason it isn't executed there. I've noticed that IntelliJ complains about this test: Old style JUnit test method 'testConsistencyEnforcement()' in JUnit 4 class and its suggested fix simply adds the @Test annotation to it. If I follow that suggestion and add the annotation, then the test is also executed on master and fails there.

So, it seems the JUnit update in #4135 just changes how JUnit discovers the tests which seems to include this test now. I suggest that we exclude the test now explicitly in #4135 so it doesn't stop us from updating JUnit and because this test has effectively been disabled for a long time already, but we should of course still look into it to find out why it is actually failing.

Stack Trace (if you have one)
[ERROR] Tests run: 203, Failures: 0, Errors: 1, Skipped: 1, Time elapsed: 258.789 s <<< FAILURE! - in org.janusgraph.graphdb.berkeleyje.BerkeleyGraphTest
[ERROR] org.janusgraph.graphdb.berkeleyje.BerkeleyGraphTest.testConsistencyEnforcement  Time elapsed: 0.196 s  <<< ERROR!
java.lang.NullPointerException
        at org.janusgraph.diskstorage.configuration.ConfigOption.getEnumValue(ConfigOption.java:243)
        at org.janusgraph.graphdb.berkeleyje.BerkeleyGraphTest.testConsistencyEnforcement(BerkeleyGraphTest.java:94)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
Lenguaje dominante
Java
Estrellas
5.9k
Forks
1.2k
Merge medio
2 d 6 h
PR fusionados (30 d)
77

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 JanusGraph/janusgraph

Todos los issues de JanusGraph/janusgraph

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.