Repository navigation
fix: Use the configured keyspace on the first ScyllaDB read/write - #7231
anasdahani220 wants to merge 1 commit into
Conversation
Signed-off-by: anasdahani220 <anasdahani220@gmail.com>
There was a problem hiding this comment.
🔍 Devin Review: 3 flags
Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
|
Could a maintainer add the kind/bug label? I don't have permission to set it. The Devin flags look non-blocking to me: the vector search path gets the same one-line change as read/write, and the test helpers follow the style of the other unit tests. Happy to add a test for retrieve_online_documents_v2 too if you'd like. |
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7231 +/- ##
==========================================
+ Coverage 54.10% 54.27% +0.16%
==========================================
Files 467 467
Lines 58940 58940
Branches 8688 8688
==========================================
+ Hits 31890 31990 +100
+ Misses 24892 24786 -106
- Partials 2158 2164 +6
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
|
Thanks for the review! None of the 3 failing checks reach the ScyllaDB code. The integration job fails with uv: not found, the registration job fails at AWS login (invalid token), and the macOS unit job has 2 feast init / feast apply timeouts (120s) in unrelated tests. The keyspace tests pass. |
Fixes #7226
online_write_batch,online_readandretrieve_online_documents_v2built thetable name with
self._keyspacebefore callingself._get_session(config), whichis where
_keyspaceis set from the config. On the first call in a process thename still used the class default
feast_keyspace, so the first statement wasprepared against the wrong keyspace.
The three methods now get the session first, like
_create_tableand_drop_tablealready do.Added unit tests with a mocked session (no ScyllaDB needed) that check the first
write and the first read prepare their statement against the configured keyspace.
Both fail on master (
"feast_keyspace"."proj_fv") and pass with this change.Release note:
ScyllaDB online store: the first read/write in a process now uses the configured keyspace instead of the default "feast_keyspace".
I used Claude to help me find the cause and write the tests.