Skip to content

vector-store: refactor passing memory & worker actors - #536

Merged
ewienik merged 4 commits into
scylladb:masterfrom
ewienik:vector-757-refactor-passing-worker
Jul 31, 2026
Merged

vector-store: refactor passing memory & worker actors#536
ewienik merged 4 commits into
scylladb:masterfrom
ewienik:vector-757-refactor-passing-worker

Conversation

@ewienik

@ewienik ewienik commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

We need to have single instance of worker actor - all indexes ought to use it. To be able to provide single instance of worker we need to refactor run function to not provide index factory function.

Additionally this PR adds *.log files to gitignore list.

Fixes: VECTOR-778

@ewienik

ewienik commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator Author

Changelog for 7aa6712

  • add fixes for flaky tests
range diff
1:  4220a3d15 = 1:  4220a3d15 vector-store: refactor run
2:  ca7eb7982 = 2:  ca7eb7982 vector-store: refactor passing memory & worker by factory
-:  --------- > 3:  7aa6712ef integration: fix flaky tests

@ewienik
ewienik marked this pull request as ready for review July 28, 2026 13:01

@Akvear Akvear left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

ewienik added 4 commits July 30, 2026 12:11
As for vector-store::run function we need optional external node_state or
db_actor let's refactor it. It will be needed for further commits to allow
behind the scene refactors, without exposing actors only for run purpose.
This commit creates memory & worker actor in main run function and pass them to
the factories as there ought to be single place to create them. All indexes
should use the single worker instance.
Order of creating actors changed. Therefore, some unit tests seem flaky. This
commit refactors tests to be more async.
@ewienik

ewienik commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator Author

Changelog for c20da1a

  • rebase to master
range diff
1:  c9d6ac9ce = 1:  e5253ef69 chore: gitignore *.log files
2:  4220a3d15 = 2:  bb5c91677 vector-store: refactor run
3:  ca7eb7982 = 3:  e3f90b94c vector-store: refactor passing memory & worker by factory
4:  7aa6712ef = 4:  c20da1aee integration: fix flaky tests

@m-szymon m-szymon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ewienik
ewienik added this pull request to the merge queue Jul 31, 2026
Merged via the queue into scylladb:master with commit 9738270 Jul 31, 2026
43 checks passed
@ewienik
ewienik deleted the vector-757-refactor-passing-worker branch July 31, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants