Title: Bug Report: signal.signal() fails in Arrow Flight worker thread in Trino offline store · Issue #6424 · feast-dev/feast · GitHub
Open Graph Title: Bug Report: signal.signal() fails in Arrow Flight worker thread in Trino offline store · Issue #6424 · feast-dev/feast
X Title: Bug Report: signal.signal() fails in Arrow Flight worker thread in Trino offline store · Issue #6424 · feast-dev/feast
Description: Expected Behavior When the Feast online container sends a materialization request to the remote offline store server (which, in my case, uses the Trino as offline store via Arrow Flight), the offline store should successfully execute the...
Open Graph Description: Expected Behavior When the Feast online container sends a materialization request to the remote offline store server (which, in my case, uses the Trino as offline store via Arrow Flight), the offli...
X Description: Expected Behavior When the Feast online container sends a materialization request to the remote offline store server (which, in my case, uses the Trino as offline store via Arrow Flight), the offli...
Opengraph URL: https://github.com/feast-dev/feast/issues/6424
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug Report: signal.signal() fails in Arrow Flight worker thread in Trino offline store","articleBody":"## Expected Behavior\n\nWhen the Feast online container sends a materialization request to the remote offline store server (which, in my case, uses the Trino as offline store via Arrow Flight), the offline store should successfully execute the Trino query and return results without raising any threading-related exceptions.\n\n## Current Behavior\n\nThe remote offline store server raises a ValueError when processing materialization requests:\n\n```\nValueError: signal only works in main thread of the main interpreter\n```\n\nThis occurs because fsdk/python/feast/infra/offline_stores/contrib/trino_offline_store/trino_queries.py line ~95 calls:\n\nsignal.signal(signal.SIGINT, self.cancel)\n\ninside Query.__init__(). When the offline store is served via Arrow Flight (as a remote offline server), this code executes in an Arrow Flight worker thread — not the main thread. Python's signal.signal() is restricted to the main thread of the main interpreter, causing the hard failure.\n\n## Steps to reproduce\n\n1 .Deploy a Feast FeatureStore CR with a remote offline store configuration backed by the Trino offline store (contrib).\n2. Ensure the offline store server is running and serving via Arrow Flight (gRPC).\n3. Trigger a materialization request from the online container (e.g., feast materialize or via the operator's materialization job).\n4. Observe the `ValueError: signal only works in main thread of the main interpreter` traceback in the offline store server logs.\n\n### Specifications\n\nVersion: Feast 0.63.0\nPlatform: Kubernetes/Linux\n\n## Possible Solution\n\nWrap the signal.signal calls in a check using threading.main_thread():\n\n```python\nimport threading # add to imports at top of file\n\nclass Query(object):\n def __init__(self, query_text: str, cursor: Cursor):\n self.query_text = query_text\n self.status = QueryStatus.PENDING\n self._cursor = cursor\n\n # Guard the signal.signal() call with a main-thread check so it is\n # only registered when running in the main thread (i.e., \n # interactive/CLI usage) and is safely skipped when running in\n # Arrow Flight worker threads\n if threading.current_thread() is threading.main_thread():\n signal.signal(signal.SIGINT, self.cancel)\n signal.signal(signal.SIGTERM, self.cancel)\n```\n","author":{"url":"https://github.com/dbbvitor","@type":"Person","name":"dbbvitor"},"datePublished":"2026-05-20T20:15:42Z","url":"https://github.com/feast-dev/feast/issues/6424"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:41b5ef9e-e896-3899-2680-2a05728ab2b8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C622:217660:2F8C7D:41AAE7:6AFE99A0 |
| html-safe-nonce | 7301ecd59c9d79d0a62ed0ad0c2dded4d21bdc522f2264a7bcd84b54196c8ea4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjIyOjIxNzY2MDoyRjhDN0Q6NDFBQUU3OjZBRkU5OUEwIiwidmlzaXRvcl9pZCI6IjQyNDc2NDk1MzA0MDE2NTI4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 38aa49abd09bade522eaf79766db833cc94d57ac40e55020c757236a19951096 |
| hovercard-subject-tag | issue:4489619155 |
| 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/6424/issue_layout |
| twitter:image | https://opengraph.githubassets.com/29438ff6ade83c4e3b766be8eba9333990932d80ff9ef4283255de32c8b0c115/feast-dev/feast/issues/6424 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/29438ff6ade83c4e3b766be8eba9333990932d80ff9ef4283255de32c8b0c115/feast-dev/feast/issues/6424 |
| og:image:alt | Expected Behavior When the Feast online container sends a materialization request to the remote offline store server (which, in my case, uses the Trino as offline store via Arrow Flight), the offli... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dbbvitor |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| 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 | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width