bug: FeatureStore.materialize() OOM-crashes on large time ranges with no built-in workaround
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- cli, data-engineering
Línea de trabajo
Comienza por los puntos de entrada FeatureStore.materialize() y materialize_incremental() y, después, revisa el PR #6277 enlazado. Comprueba cómo feature_store.yaml y la CLI exponen las opciones de materialización, y verifica que el chunking sea opcional, funcione mediante ambas interfaces y conserve el progreso después de una ejecución interrumpida.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
FeatureStore.materialize() and FeatureStore.materialize_incremental() load the entire requested time range into memory in a single pass. On production deployments this causes out-of-memory (OOM) crashes that are silent, difficult to recover from, and currently require external orchestration to work around.
Steps to reproduce
from datetime import datetime, timedelta
fs.materialize(
start_date=datetime(2026, 1, 1),
end_date=datetime(2026, 3, 1), # ~60-day window
)
With a high-frequency feature view (e.g. 10-minute ETL batches → ~8 640 rows/day per entity × many entities), a worker with ≤ 8 GB RAM will exhaust memory and crash with no informative error from Feast.
Root cause
Both materialize() and materialize_incremental() delegate to materialize_single_feature_view exactly once per feature view, passing the full [start, end] window. The underlying data source query materialises the entire range in one shot — there is no pagination, chunking, or streaming at the Feast SDK layer.
Impact
| Scenario | Effect |
|---|---|
| Multi-day / multi-week backfill | Worker OOM crash |
| Sub-minute sensor data at scale | Worker OOM crash |
| Large number of entities × long window | Worker OOM crash |
| Crash recovery | most_recent_end_time is not committed until the entire range succeeds, so a crash forces a full re-run |
Current workaround
Users must implement their own loop outside Feast:
chunk = timedelta(hours=6)
cursor = start
while cursor < end:
next_cursor = min(cursor + chunk, end)
fs.materialize(cursor, next_cursor)
cursor = next_cursor
This is error-prone, not integrated with materialize_incremental's watermark, and must be reimplemented by every affected user.
Expected behaviour
Feast should provide a native chunk_size option so users can cap peak memory usage without external orchestration. Chunking should:
- Be opt-in and backward-compatible (default: no chunking).
- Support a project-level default in
feature_store.yamlundermaterialization.chunk_size. - Commit
most_recent_end_timeper chunk so a crash mid-run allowsmaterialize_incrementalto resume from the last committed chunk. - Be available via both the Python SDK and the CLI.
Related
A PR implementing the above is available for review: https://github.com/feast-dev/feast/pull/6277
- Lenguaje dominante
- Python
- Estrellas
- 7.4k
- Forks
- 1.5k
- Merge medio
- 2 d 6 h
- PR fusionados (30 d)
- 107
Preparar el entorno
- 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 feast-dev/feast
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
BigQuery data quality monitoring fails: PRIMARY KEY placed outside the column list in monitoring table DDLPosiblemente ocupada @liron-velocity la tomó hace 50 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
get_online_features silently drops a join key value when it shares a name with an OnDemandFeatureView's RequestSource fieldPosiblemente ocupada @OHMFOHS la tomó hace 99 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
kind/bug priority/p2
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
feast-dev/feast#6778 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de feast-dev/feast
Issues similares
-
Public benchmark import end-to-end test fails when the test stack's worker runs the parity jobAbiertoaccepted
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
future-agi/future-agi#6392 ·
Los mantenedores suelen responder en 1 día
-
memmapped_arange ignores the start value and drops the last point above the memmap thresholdPosiblemente ocupada @prathameshfuke la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
StingraySoftware/HENDRICS#213 ·
-
Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
bot-triaged module: decompositions module: edge cases module: int overflow module: primTorch oncall: pt2 triage review
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día