Commit 506d919
fix: Fix ValueError in signal handling for Trino worker threads (#6428)
* fix: fix signal.signal() ValueError in Trino worker threads
Signed-off-by: MBM <mihir105@gmail.com>
* test: patch signal.signal in main thread test to avoid handler leak
Signed-off-by: MBM <mihir105@gmail.com>
* Update sdk/python/feast/infra/offline_stores/contrib/trino_offline_store/tests/test_trino_queries.py
Apply reviewer suggestion: verify correct signals and handler in test
Co-authored-by: Jitendra Yejare <jyejare@redhat.com>
Signed-off-by: MBM <mihir105@gmail.com>
* test: address PR feedback for worker thread errors and signals
- Simplify worker thread assertion message to safely print errors list
- Add verification for signal handler registration details
Signed-off-by: MBM <mihir105@gmail.com>
---------
Signed-off-by: MBM <mihir105@gmail.com>
Co-authored-by: Jitendra Yejare <jyejare@redhat.com>1 parent cd5f6bb commit 506d919
2 files changed
Lines changed: 52 additions & 2 deletions
File tree
- sdk/python/feast/infra/offline_stores/contrib/trino_offline_store
- tests
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | | - | |
96 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
0 commit comments