René's URL Explorer Experiment


Title: Corrupted registry breaks usage of feature store · Issue #3703 · feast-dev/feast · GitHub

Open Graph Title: Corrupted registry breaks usage of feature store · Issue #3703 · feast-dev/feast

X Title: Corrupted registry breaks usage of feature store · Issue #3703 · feast-dev/feast

Description: Expected Behavior Connecting to the feast registry and pulling features from a connected registry should work without an issue. All feature views should be callable. Current Behavior The registry entry for one of four feature views seems...

Open Graph Description: Expected Behavior Connecting to the feast registry and pulling features from a connected registry should work without an issue. All feature views should be callable. Current Behavior The registry e...

X Description: Expected Behavior Connecting to the feast registry and pulling features from a connected registry should work without an issue. All feature views should be callable. Current Behavior The registry e...

Opengraph URL: https://github.com/feast-dev/feast/issues/3703

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Corrupted registry breaks usage of feature store","articleBody":"## Expected Behavior \r\nConnecting to the feast registry and pulling features from a connected registry should work without an issue.\r\nAll feature views should be callable.\r\n\r\n## Current Behavior\r\nThe registry entry for one of four feature views seems to be corrupted. Opening a new connection succeeds for the first three features. Upon calling the fourth feature, the instantiation fails with the following error. This errors occurs regardless of the location from which we run `store = FeatureStore(config=repo_config)`.\r\n\r\n```Traceback (most recent call last):\r\n  File \"/root/.cache/pypoetry/virtualenvs/feast-poc-t0rhiBNj-py3.11/bin/feast\", line 8, in \u003cmodule\u003e\r\n    sys.exit(cli())\r\n             ^^^^^\r\n  File \"/root/.cache/pypoetry/virtualenvs/feast-poc-t0rhiBNj-py3.11/lib/python3.11/site-packages/click/core.py\", line 1130, in __call__\r\n    return self.main(*args, **kwargs)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/root/.cache/pypoetry/virtualenvs/feast-poc-t0rhiBNj-py3.11/lib/python3.11/site-packages/click/core.py\", line 1055, in main\r\n    rv = self.invoke(ctx)\r\n         ^^^^^^^^^^^^^^^^\r\n  File \"/root/.cache/pypoetry/virtualenvs/feast-poc-t0rhiBNj-py3.11/lib/python3.11/site-packages/click/core.py\", line 1657, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/root/.cache/pypoetry/virtualenvs/feast-poc-t0rhiBNj-py3.11/lib/python3.11/site-packages/click/core.py\", line [140](https://git.takeaway.com/scoober/ml-platform/poc/feast-poc/-/jobs/11952145#L140)4, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/root/.cache/pypoetry/virtualenvs/feast-poc-t0rhiBNj-py3.11/lib/python3.11/site-packages/click/core.py\", line 760, in invoke\r\n    return __callback(*args, **kwargs)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/root/.cache/pypoetry/virtualenvs/feast-poc-t0rhiBNj-py3.11/lib/python3.11/site-packages/click/decorators.py\", line 26, in new_func\r\n    return f(get_current_context(), *args, **kwargs)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/root/.cache/pypoetry/virtualenvs/feast-poc-t0rhiBNj-py3.11/lib/python3.11/site-packages/feast/cli.py\", line 618, in materialize_incremental_command\r\n    store = FeatureStore(repo_path=str(repo), fs_yaml_file=fs_yaml_file)\r\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/root/.cache/pypoetry/virtualenvs/feast-poc-t0rhiBNj-py3.11/lib/python3.11/site-packages/feast/usage.py\", line 362, in wrapper\r\n    raise exc.with_traceback(traceback)\r\n  File \"/root/.cache/pypoetry/virtualenvs/feast-poc-t0rhiBNj-py3.11/lib/python3.11/site-packages/feast/usage.py\", line 348, in wrapper\r\n    return func(*args, **kwargs)\r\n           ^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/root/.cache/pypoetry/virtualenvs/feast-poc-t0rhiBNj-py3.11/lib/python3.11/site-packages/feast/feature_store.py\", line [160](https://git.takeaway.com/scoober/ml-platform/poc/feast-poc/-/jobs/11952145#L160), in __init__\r\n    self._registry = SqlRegistry(registry_config, self.config.project, None)\r\n                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/root/.cache/pypoetry/virtualenvs/feast-poc-t0rhiBNj-py3.11/lib/python3.11/site-packages/feast/infra/registry/sql.py\", line 201, in __init__\r\n    self.cached_registry_proto = self.proto()\r\n                                 ^^^^^^^^^^^^\r\n  File \"/root/.cache/pypoetry/virtualenvs/feast-poc-t0rhiBNj-py3.11/lib/python3.11/site-packages/feast/infra/registry/sql.py\", line 842, in proto\r\n    objs: List[Any] = lister(project)  # type: ignore\r\n                      ^^^^^^^^^^^^^^^\r\n  File \"/root/.cache/pypoetry/virtualenvs/feast-poc-t0rhiBNj-py3.11/lib/python3.11/site-packages/feast/infra/registry/sql.py\", line 582, in list_feature_views\r\n    return self._list_objects(\r\n           ^^^^^^^^^^^^^^^^^^^\r\n  File \"/root/.cache/pypoetry/virtualenvs/feast-poc-t0rhiBNj-py3.11/lib/python3.11/site-packages/feast/infra/registry/sql.py\", line 1006, in _list_objects\r\n    return [\r\n           ^\r\n  File \"/root/.cache/pypoetry/virtualenvs/feast-poc-t0rhiBNj-py3.11/lib/python3.11/site-packages/feast/infra/registry/sql.py\", line 1008, in \u003clistcomp\u003e\r\n    proto_class.FromString(row[proto_field_name])\r\ngoogle.protobuf.message.DecodeError: Error parsing message\r\n```\r\nExisting connections fail to pull any feature view from the feature store with:\r\n```\r\nTraceback (most recent call last):\r\n  File \\\"/usr/local/lib/python3.10/site-packages/mlserver/parallel/worker.py\\\", line 136, in _process_request    return_value = await method(\r\n  File \\\"/app/./customer-eta/eta/customer_eta.py\\\", line 90, in predict\r\n    _input = self._preprocessor.preprocess(payload)\r\n  File \\\"/app/./customer-eta/eta/steps/preprocessing.py\\\", line 28, in preprocess\r\n    feature_data = self.feature_store.get_online_features(\r\n  File \\\"/usr/local/lib/python3.10/site-packages/feast/usage.py\\\", line 288, in wrapper\r\n    return func(*args, **kwargs)\r\n  File \\\"/usr/local/lib/python3.10/site-packages/feast/feature_store.py\\\", line 1583, in get_online_features\r\n    return self._get_online_features(\r\n  File \\\"/usr/local/lib/python3.10/site-packages/feast/feature_store.py\\\", line 1605, in _get_online_features\r\n    _feature_refs = self._get_features(features, allow_cache=True)\r\n  File \\\"/usr/local/lib/python3.10/site-packages/feast/feature_store.py\\\", line 524, in _get_features\r\n    feature_service_from_registry = self.get_feature_service(\r\n  File \\\"/usr/local/lib/python3.10/site-packages/feast/usage.py\\\", line 299, in wrapper\r\n    raise exc.with_traceback(traceback)\r\n  File \\\"/usr/local/lib/python3.10/site-packages/feast/usage.py\\\", line 288, in wrapper\r\n    return func(*args, **kwargs)\r\n  File \\\"/usr/local/lib/python3.10/site-packages/feast/feature_store.py\\\", line 386, in get_feature_service\r\n    return self._registry.get_feature_service(name, self.project, allow_cache)\r\n  File \\\"/usr/local/lib/python3.10/site-packages/feast/infra/registry/sql.py\\\", line 383, in get_feature_service\r\n    self._refresh_cached_registry_if_necessary()\r\n  File \\\"/usr/local/lib/python3.10/site-packages/feast/infra/registry/sql.py\\\", line 259, in _refresh_cached_registry_if_necessary\r\n    self.refresh()\r\n  File \\\"/usr/local/lib/python3.10/site-packages/feast/infra/registry/sql.py\\\", line 238, in refresh\r\n    self.cached_registry_proto = self.proto()\r\n  File \\\"/usr/local/lib/python3.10/site-packages/feast/infra/registry/sql.py\\\", line 828, in proto\r\n    projects = self._get_all_projects()\r\n  File \\\"/usr/local/lib/python3.10/site-packages/feast/infra/registry/sql.py\\\", line 1074, in _get_all_projects\r\n    rows = conn.execute(stmt).all()\r\n  File \\\"/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py\\\", line 1385, in execute\r\n    return meth(self, multiparams, params, _EMPTY_EXECUTION_OPTS)\r\n  File \\\"/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/elements.py\\\", line 334, in _execute_on_connection\r\n    return connection._execute_clauseelement(\r\n  File \\\"/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py\\\", line 1577, in _execute_clauseelement\r\n    ret = self._execute_context(\r\n  File \\\"/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py\\\", line 1948, in _execute_context\r\n    self._handle_dbapi_exception(\r\n  File \\\"/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py\\\", line 2129, in _handle_dbapi_exception\r\n    util.raise_(\r\n  File \\\"/usr/local/lib/python3.10/site-packages/sqlalchemy/util/compat.py\\\", line 211, in raise_\r\n    raise exception\r\n  File \\\"/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py\\\", line 1905, in _execute_context\r\n    self.dialect.do_execute(\r\n  File \\\"/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/default.py\\\", line 736, in do_execute\r\n    cursor.execute(statement, parameters)\r\n  File \\\"/usr/local/lib/python3.10/site-packages/pymysql/cursors.py\\\", line 153, in execute\r\n    result = self._query(query)\r\n  File \\\"/usr/local/lib/python3.10/site-packages/pymysql/cursors.py\\\", line 322, in _query\r\n    conn.query(q)\r\n  File \\\"/usr/local/lib/python3.10/site-packages/pymysql/connections.py\\\", line 557, in query\r\n    self._execute_command(COMMAND.COM_QUERY, sql)\r\n  File \\\"/usr/local/lib/python3.10/site-packages/pymysql/connections.py\\\", line 861, in _execute_command\r\n    self._write_bytes(packet)\r\n  File \\\"/usr/local/lib/python3.10/site-packages/pymysql/connections.py\\\", line 806, in _write_bytes\r\n    raise err.OperationalError(\r\nsqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2006, \\\"MySQL server has gone away (BrokenPipeError(32, 'Broken pipe'))\\\")\r\n[SQL: SELECT entities.entity_name, entities.project_id, entities.last_updated_timestamp, entities.entity_proto \r\nFROM entities]\r\n(Background on this error at: https://sqlalche.me/e/14/e3q8)\", \"level\": \"ERROR\"\r\n```\r\n\r\n## Steps to reproduce\r\nWe haven't been able to reproduce the error yet. We have a CI job running `feast materialize-incremental` every 5 mins, pushing the same demo data. That job started failing at some point without any changes in the data, dependencies or setup in general.\r\n\r\nAuthentication and manual querying of the registry and databases works fine.\r\n\r\n### Specifications\r\n\r\n- Version: feast == 0.31.1, python == 3.10.10\r\n- Platform: AWS, registry: RDS, online store: dynamodb, offline store: redshift\r\n- Subsystem:\r\n\r\n## Possible Solution\r\nWe dumped the feature store and recreated it running `feast apply`. This is fine for now since we are in an experimental setup. Once we move towards using feast in production, we would like to have an understanding of what is happening here and how to resolve this without dumping the whole feature store.\r\n","author":{"url":"https://github.com/LeonKolyang","@type":"Person","name":"LeonKolyang"},"datePublished":"2023-07-31T12:52:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/3703/feast/issues/3703"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:84bd1973-3517-97cf-a07a-fcbf07aacea4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9584:2CBC5E:48B8087:666D109:6A56DCD9
html-safe-nonce6ee2f034e67ad943902d1a571a61137b1a1e61a633a22f7aa271c52a84017233
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTg0OjJDQkM1RTo0OEI4MDg3OjY2NkQxMDk6NkE1NkRDRDkiLCJ2aXNpdG9yX2lkIjoiNjc3MjEwMjA3MjQzNzc1OTE5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacca4411b98dfbf346867614f96ebaa336b4ce3578f36205a6000ff9a9409a86ee
hovercard-subject-tagissue:1829129749
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/3703/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e12785acc8924a87811399c7f76a2f27db5189207faa83e88d55096f4300c030/feast-dev/feast/issues/3703
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e12785acc8924a87811399c7f76a2f27db5189207faa83e88d55096f4300c030/feast-dev/feast/issues/3703
og:image:altExpected Behavior Connecting to the feast registry and pulling features from a connected registry should work without an issue. All feature views should be callable. Current Behavior The registry e...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLeonKolyang
hostnamegithub.com
expected-hostnamegithub.com
None5220a278731283038daf0ed00b41f06ef7ff9539020ecc806c5c5a0fb6bda25a
turbo-cache-controlno-preview
go-importgithub.com/feast-dev/feast git https://github.com/feast-dev/feast.git
octolytics-dimension-user_id57027613
octolytics-dimension-user_loginfeast-dev
octolytics-dimension-repository_id161133770
octolytics-dimension-repository_nwofeast-dev/feast
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id161133770
octolytics-dimension-repository_network_root_nwofeast-dev/feast
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8684ae1a81cd3e4ef219b241179982bbda1a5b1f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/feast-dev/feast/issues/3703#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F3703
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F3703
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=feast-dev%2Ffeast
Reloadhttps://github.com/feast-dev/feast/issues/3703
Reloadhttps://github.com/feast-dev/feast/issues/3703
Reloadhttps://github.com/feast-dev/feast/issues/3703
Please reload this pagehttps://github.com/feast-dev/feast/issues/3703
feast-dev https://github.com/feast-dev
feasthttps://github.com/feast-dev/feast
Notifications https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Fork 1.4k https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Star 7.1k https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Code https://github.com/feast-dev/feast
Issues 214 https://github.com/feast-dev/feast/issues
Pull requests 178 https://github.com/feast-dev/feast/pulls
Discussions https://github.com/feast-dev/feast/discussions
Actions https://github.com/feast-dev/feast/actions
Security and quality 1 https://github.com/feast-dev/feast/security
Insights https://github.com/feast-dev/feast/pulse
Code https://github.com/feast-dev/feast
Issues https://github.com/feast-dev/feast/issues
Pull requests https://github.com/feast-dev/feast/pulls
Discussions https://github.com/feast-dev/feast/discussions
Actions https://github.com/feast-dev/feast/actions
Security and quality https://github.com/feast-dev/feast/security
Insights https://github.com/feast-dev/feast/pulse
Corrupted registry breaks usage of feature storehttps://github.com/feast-dev/feast/issues/3703#top
kind/bughttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/p2https://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22priority%2Fp2%22
https://github.com/LeonKolyang
LeonKolyanghttps://github.com/LeonKolyang
on Jul 31, 2023https://github.com/feast-dev/feast/issues/3703#issue-1829129749
kind/bughttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/p2https://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22priority%2Fp2%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.