Repository navigation
feat: Bring Your Own Spark - SparkApplication #6550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ntkathole
merged 16 commits into
feast-dev:master
from
aniketpalu:feat/spark-application-compute-engine
Jul 17, 2026
Merged
Changes from 10 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
462ad7b
feat: Add SparkApplicationComputeEngine for Kubernetes-native batch m…
aniketpalu 9d4a125
feat: Add per-FV result reporting and clean up Dockerfile
aniketpalu 0193c52
Minor lint & formatting change
aniketpalu 79eb653
Merge branch 'master' into feat/spark-application-compute-engine
aniketpalu a71de0c
Merge branch 'master' into feat/spark-application-compute-engine
aniketpalu 4d49be9
feat: Switch to ConfigMap, remove registry_address, reject file-based…
aniketpalu 7a27217
Merge branch 'master' into feat/spark-application-compute-engine
aniketpalu 9879506
Minor formatting
aniketpalu d3fc4c8
fix: address PR #6550 review — retry, validation, per-FV status
aniketpalu ba73932
Merge branch 'master' into feat/spark-application-compute-engine
aniketpalu a38a56d
fix: isolate batch materialization to supports_batch engines
aniketpalu 0f348a8
fix: address ntkathole review — dates dataclass, jobs check, UNKNOWN,…
aniketpalu cef6fa6
fix: lazy-init K8s client for spark_application engine
aniketpalu 5c0b9fb
chore: Refresh pixi.lock after pyproject.toml dependency changes
aniketpalu 396151e
fix: skip duplicate apply_materialization for SparkApplication
aniketpalu cbd4051
fix: harden supports_batch check against missing batch_engine
aniketpalu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
sdk/python/feast/infra/compute_engines/spark_application/.dockerignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| feast/.git | ||
| feast/__pycache__ | ||
| feast/**/__pycache__ | ||
| feast/.mypy_cache | ||
| feast/tests | ||
| feast/.pixi | ||
| **/*.pyc | ||
| **/.pytest_cache |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Critical] Race condition in state management
The state transition and rollback logic has potential race conditions when multiple materialization jobs run concurrently. The previous_states dictionary and feature view state updates are not atomic, which could lead to inconsistent states or lost rollbacks.
Suggested:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The threading race condition described isn't present because previous_states is a local variable (line 2551) and all loops (for fv, job in zip(...)) are sequential Python for loops, not threaded. Each materialize() call creates its own dict.
However, reviewing this code path revealed a shared-object bug in our engine's _build_per_fv_jobs. Previously, all succeeded FVs received the same SparkApplicationMaterializationJob reference. During _wait_for_completion, polling sets _error on that object when the SparkApp transitions to FAILED. Later, when feature_store.py calls job.status() for each FV, they all hit the if self._error is not None: return ERROR early-return, even for the FVs that actually succeeded and wrote AVAILABLE_ONLINE to the registry.