Title: Redis Cluster implementation is broken · Issue #2328 · feast-dev/feast · GitHub
Open Graph Title: Redis Cluster implementation is broken · Issue #2328 · feast-dev/feast
X Title: Redis Cluster implementation is broken · Issue #2328 · feast-dev/feast
Description: Expected Behavior Current Behavior Recently a Redis cluster bug was fixed in #2311 and tests were added in #2317. However, these tests revealed other issues with our Redis cluster implementation. One issue is the way we currently scan fo...
Open Graph Description: Expected Behavior Current Behavior Recently a Redis cluster bug was fixed in #2311 and tests were added in #2317. However, these tests revealed other issues with our Redis cluster implementation. O...
X Description: Expected Behavior Current Behavior Recently a Redis cluster bug was fixed in #2311 and tests were added in #2317. However, these tests revealed other issues with our Redis cluster implementation. O...
Opengraph URL: https://github.com/feast-dev/feast/issues/2328
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Redis Cluster implementation is broken","articleBody":"## Expected Behavior \r\n\r\n## Current Behavior\r\n\r\nRecently a Redis cluster bug was fixed in #2311 and tests were added in #2317. However, these tests revealed other issues with our Redis cluster implementation.\r\n\r\nOne issue is the way we currently scan for rows to delete:\r\n```\r\nclient.scan_iter(b\"\".join([prefix, b\"*\", config.project.encode(\"utf8\")]))\r\n```\r\nFirst, `scan_iter` only hits a single master node by default, so this line should instead be something like\r\n```\r\nclient.scan_iter(b\"\".join([prefix, b\"*\", config.project.encode(\"utf8\")]), target_nodes=RedisCluster.PRIMARIES)\r\n```\r\nHowever, this is still broken. After some digging, it seems that `scan_iter` relies on `scan`, which is itself broken - I believe this is an issue with `redis-py`. I filed an issue [here](https://github.com/redis/redis-py/issues/2003).\r\n\r\nAnother issue seems to be with our current pipelining logic. We have `with client.pipeline(transaction=False) as pipe:`, but this leads to the following error:\r\n```\r\nredis.exceptions.ResponseError: Command # 1 (HMGET drivertest_universal_cli_26a064e4 _ts:driver_locations) of pipeline caused error: MOVED 12671 127.0.0.1:6003\r\n```\r\n\r\n## Steps to reproduce\r\n\r\n### Specifications\r\n\r\n- Version:\r\n- Platform:\r\n- Subsystem:\r\n\r\n## Possible Solution\r\n\r\nThis issue tracks a resolution to the existing Redis cluster bugs. After they've been fixed, we should reenable Redis cluster tests, which were disabled in #2327 to unblock other PRs.\r\n","author":{"url":"https://github.com/felixwang9817","@type":"Person","name":"felixwang9817"},"datePublished":"2022-02-20T01:01:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2328/feast/issues/2328"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:92937e82-6639-5b0d-4cac-bb60ce9d3de5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8144:340817:22F0E89:3185AF5:6978EDBB |
| html-safe-nonce | 7304a05f33fa27e0b8e455acfcbe24b62c1e67efad2b2dc473b8e0e778849d01 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTQ0OjM0MDgxNzoyMkYwRTg5OjMxODVBRjU6Njk3OEVEQkIiLCJ2aXNpdG9yX2lkIjoiNTc4NTUzODI3MDUzMTc0MzE2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2f11ea226a05000d07a3f011ddb963cea56e29b7b3990e40cba1020b4a66d5b7 |
| hovercard-subject-tag | issue:1144886529 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/2328/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2e1f5e3079c00fa994a8ff0826e9140f6928d12bceb14b2815da0ca7d2d50549/feast-dev/feast/issues/2328 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2e1f5e3079c00fa994a8ff0826e9140f6928d12bceb14b2815da0ca7d2d50549/feast-dev/feast/issues/2328 |
| og:image:alt | Expected Behavior Current Behavior Recently a Redis cluster bug was fixed in #2311 and tests were added in #2317. However, these tests revealed other issues with our Redis cluster implementation. O... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | felixwang9817 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8a71ca1f7ab5436216e1df86f398ef7a51ed3152c90e3f7332fc70cf97fcb9d6 |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 024f9f4ca72571329d73933440b8ceb5414e77a5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width