Skip to content
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

feast apply does not remove deleted feature views from Redis #1806

Closed
adchia opened this issue Aug 26, 2021 · 3 comments
Closed

feast apply does not remove deleted feature views from Redis #1806

adchia opened this issue Aug 26, 2021 · 3 comments

Comments

@adchia
Copy link
Collaborator

adchia commented Aug 26, 2021

Expected Behavior

The Redis online store removes materialized feature views if they are no longer present in the repo

Current Behavior

Nothing happens on feast apply. This is particularly bad because Redis is in-memory, so deleted feature views that aren't accessed incur a continued hit on resources (as opposed to other stores where this is written to disk)

@loftiskg
Copy link
Contributor

@adchia Is this currently being worked on? I think this would be pretty easy to add now that #1965 has been merged. Happy to give it a shot if not.

@adchia
Copy link
Collaborator Author

adchia commented Oct 25, 2021

@loftiskg

don't think so. give it a whirl and thanks for following up!

@loftiskg
Copy link
Contributor

actually, taking a closer look, looks like #1965 actually added this.

def update(
self,
config: RepoConfig,
tables_to_delete: Sequence[Union[FeatureTable, FeatureView]],
tables_to_keep: Sequence[Union[FeatureTable, FeatureView]],
entities_to_delete: Sequence[Entity],
entities_to_keep: Sequence[Entity],
partial: bool,
):
"""
We delete the keys in redis for tables/views being removed.
"""
for table in tables_to_delete:
self.delete_table_values(config, table)

I think this issue is probably good to close.

@achals achals closed this as completed Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants