GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — spark_application engine reports successful single-feature-view materializations as failure · Issue #6673 · feast-dev/feast Closed Labels DescriptionExpected BehaviorWhen a SparkApplication reaches Current BehaviorEvery successful single-feature-view materialization using the This is deterministic: Feast deletes the SparkApplication CR before performing the status check that fails.
try: self._wait_for_completion(job) return self._build_per_fv_jobs(registry, tasks, job_id, job) finally: self._cleanup(job_id) After if len(tasks) <= 1: return [job for _ in tasks] The second status check therefore queries the CR that By this point, the Spark driver has already materialized the features and updated the registry. Automation calling This is not caused by the Spark Operator's The relevant flow is still present on
Steps to reproduce
The feature-view count matters. For multiple feature views, The failure can also be reproduced without a cluster: from kubernetes.client.exceptions import ApiException from feast.infra.compute_engines.spark_application.job import ( SparkApplicationMaterializationJob, ) class Api: """Return COMPLETED once, then simulate the CR having been deleted.""" def __init__(self): self.calls = 0 def get_namespaced_custom_object(self, **kwargs): self.calls += 1 if self.calls == 1: return { "status": { "applicationState": { "state": "COMPLETED", } } } raise ApiException(status=404, reason="Not Found") job = SparkApplicationMaterializationJob("abc123", "default", Api()) print(job.status()) # SUCCEEDED: observed by _wait_for_completion print(job.status()) # ERROR: observed by FeatureStore after cleanup print(job.error()) # SparkApplication feast-sa-abc123 not found Specifications
Possible SolutionCache the first terminal status ( An alternative is to return a Regression tests should verify that:
I have the terminal-status caching fix and regression tests working locally and can open a PR Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |