Make RestCatalog safe to share across threads
Los mantenedores suelen responder en 2 días
@smaheshwar-pltr ya está trabajando en esto.
Desde el 4/11/2026.
- #1092 de @smaheshwar-pltr — abierto
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
Línea de trabajo
Read src/iceberg/catalog/rest/rest_catalog.cc around AsCatalog() at lines 565–573, then inspect the HttpClient path and the linked issue #1089 to understand the shared request state. Make the default catalog cache safe for concurrent access and confirm the linked HTTP client work supports sharing; done means concurrent catalog use has no data race. An open pull request, #1092, is already linked.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Currently, RestCatalog doesn't document whether one instance can be shared between threads. Query engines usually share one catalog across concurrent queries (for example Spark within a session, Trino, and DuckDB), and iceberg-rust requires catalogs to be Send + Sync (code).
Without that guarantee, an embedder has to serialize every catalog call behind its own lock. That costs throughput, and one hung request then blocks every other caller. In https://github.com/smaheshwar-pltr/duckdb-proto-iceberg, we observed that making a catalog-heavy test about 4x slower.
RestCatalog is close to thread-safe already. After Make(), the only state it changes is the default catalog that AsCatalog() caches in a weak_ptr. It reads and writes that cache without a lock, so concurrent AsCatalog() calls race (rest_catalog.cc#L565-L573).
Note: sharing a catalog also depends on https://github.com/apache/iceberg-cpp/issues/1089, because every request goes through one HttpClient.
- Lenguaje dominante
- C++
- Estrellas
- 227
- Forks
- 142
- Merge medio
- 3 d 21 min
- PR fusionados (30 d)
- 70
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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-cpp
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
apache/iceberg-cpp#1103 ·
Los mantenedores suelen responder en 2 días
-
help wanted
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
apache/iceberg-cpp#1101 ·
Los mantenedores suelen responder en 2 días
-
Support Iceberg SQL viewsAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
apache/iceberg-cpp#1099 ·
Los mantenedores suelen responder en 2 días
-
Complete OAuth2 token refresh and expiration support (Java-compatible)Posiblemente ocupada @lishuxu la tomó hace 2 días. Abierto
apache/iceberg-cpp#1095 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
RestCatalog: concurrent HTTP requests can crash in libcurlPosiblemente ocupada @smaheshwar-pltr la tomó hace 3 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
apache/iceberg-cpp#1089 ·
Los mantenedores suelen responder en 2 días
Todos los issues de apache/iceberg-cpp
Issues similares
-
ai_p2
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ClickHouse/ClickHouse#130006 ·
Los mantenedores suelen responder en 1 día
-
DepotMaintain: EN longer string moves the hint popup buttons out of reach // WpfGUI English LanguageAbiertoclient: WpfGui module: depot question
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
MaaAssistantArknights/MaaAssistantArknights#19169 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
area: certificates bug outdated-version
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
RafaelNGP/xbox-cloud-gaming-ps5#381 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
parse_selu lowering loses catastrophic cancellation → silent 0.0 for moderate positive inputsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
ROCm/AMDMIGraphX#5490 ·
Los mantenedores suelen responder en 3 días