Hive: NPE in MetastoreLock.findLock() when ShowLocksResponse has no locks
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 25/100
Línea de trabajo
Start in MetastoreLock.findLock() at MetastoreLock.java:375, where ShowLocksResponse.getLocks() is iterated, and read the createLock() call path around lines 302–314. Check how the code handles a response with no locks while preserving the original TException. Done means this case no longer throws an NPE; an open linked pull request (#19235) already addresses the issue.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
When lock() fails, MetastoreLock.createLock() calls findLock(), which iterates
ShowLocksResponse.getLocks() without a null check. locks is optional, and some metastores
return a response without it set. The resulting NPE hides the original TException from
lock().
java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because the return value of "org.apache.hadoop.hive.metastore.api.ShowLocksResponse.getLocks()" is null
at org.apache.iceberg.hive.MetastoreLock.findLock(MetastoreLock.java:375)
at org.apache.iceberg.hive.MetastoreLock.lambda$createLock$...(MetastoreLock.java:314)
...
at org.apache.iceberg.hive.MetastoreLock.createLock(MetastoreLock.java:302)
at org.apache.iceberg.hive.MetastoreLock.acquireLock(MetastoreLock.java:185)
at org.apache.iceberg.hive.MetastoreLock.lock(MetastoreLock.java:146)
at org.apache.iceberg.hive.HiveTableOperations.doCommit(HiveTableOperations.java:272)
...
Affects 1.11.0, 1.12.0 and main.
- Lenguaje dominante
- Java
- Estrellas
- 9.5k
- Forks
- 3.7k
- Merge medio
- 2 d 2 h
- PR fusionados (30 d)
- 170
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 apache/iceberg
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Spark: Test INSERT targets with computed IDENTIFIER expressionsPosiblemente ocupada @shivadarshan-devadiga la tomó hace 15 días. Abiertoimprovement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
[Core] TestAvroPartitionStatsHandler fails on Windows due to unclosed partition statistics scanPosiblemente ocupada @Ankitkj1999 la tomó hace 18 días. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Core: TableMetadata.Builder allows adding encryption keys to v1/v2 tablesPosiblemente ocupada @yusufyildiz34 la tomó hace 37 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/iceberg#18632 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Kafka: Filter empty strings and whitespace in IcebergSinkConfig stringToListPosiblemente ocupada @mohamed-elbrik la tomó hace 42 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
Todos los issues de apache/iceberg
Issues similares
-
bug vault
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
bancolombia/secrets-manager#150 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 92/100
HexaHexes/neoforge-mod-template#124 ·
Los mantenedores suelen responder en 1 día
-
awaiting triage java new feature P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
source-survicate: pagination reads pagination and stops after one page; substreams drop survey_idAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
OpenLiberty/open-liberty#36410 ·
Los mantenedores suelen responder en 1 día