-
Notifications
You must be signed in to change notification settings - Fork 998
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
Delete keys from Redis when tearing down online store #1965
Delete keys from Redis when tearing down online store #1965
Conversation
Signed-off-by: Achal Shah <achals@gmail.com>
b0da50a
to
57adc31
Compare
Codecov Report
@@ Coverage Diff @@
## master #1965 +/- ##
==========================================
+ Coverage 81.98% 82.03% +0.04%
==========================================
Files 100 100
Lines 7926 7948 +22
==========================================
+ Hits 6498 6520 +22
Misses 1428 1428
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: Achal Shah <achals@gmail.com>
Signed-off-by: Achal Shah <achals@gmail.com>
Signed-off-by: Achal Shah <achals@gmail.com>
client = self._get_client(config.online_store) | ||
deleted_count = 0 | ||
for table in tables_to_delete: | ||
pipline = client.pipeline() |
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.
typo: pipeline
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.
done
client = self._get_client(config.online_store) | ||
deleted_count = 0 | ||
for table in tables: | ||
pipline = client.pipeline() |
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.
typo: pipeline
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.
Done
Signed-off-by: Achal Shah <achals@gmail.com>
Signed-off-by: Achal Shah <achals@gmail.com>
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: achals, felixwang9817 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/kind bug |
Signed-off-by: Achal Shah achals@gmail.com
What this PR does / why we need it:
When you run
feast teardown
on a feast project that uses redis as the online store, it leaves behind all the keys that're written into redis.This is bad and is an obvious leak of memory/resources. In contrast, in dynamo and datastore, the tables and values are cleaned up.
Does this PR introduce a user-facing change?: