Skip to content

[pull] master from apache:master - #547

Merged
pull[bot] merged 1 commit into
section9-lab:masterfrom
apache:master
Jul 19, 2026
Merged

[pull] master from apache:master#547
pull[bot] merged 1 commit into
section9-lab:masterfrom
apache:master

Conversation

@pull

@pull pull Bot commented Jul 19, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

* Reuse Milvus client in vector sink write path

_MilvusSink.write() constructed a new MilvusClient on every call, which
discarded the retry-wrapped client created in __enter__. This bypassed the
connection retry/backoff and left the initial client unclosed (leaked),
while __exit__ only closed the last client. The write() docstring also
incorrectly claimed the collection was flushed for durability.

Reuse the client established in __enter__ for the upsert, and correct the
docstring to describe the actual (no-flush) visibility semantics. Add a
unit test asserting write() reuses the __enter__ client instead of
reconstructing one per call.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Clear Milvus client after close in sink __exit__

Set self._client to None after closing so a reused sink instance does
not keep a stale closed client. Address review feedback.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
@pull pull Bot locked and limited conversation to collaborators Jul 19, 2026
@pull pull Bot added the ⤵️ pull label Jul 19, 2026
@pull
pull Bot merged commit bef9ef1 into section9-lab:master Jul 19, 2026
27 of 68 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant