You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: Race condition in mcp-server/server.py _init() under concurrent requests #74
mcp-server/server.py uses lazy initialization in _init() (lines 18–23) to set up the MilvusClient and encoder. There's no lock around this.
Problem
Under concurrent WebSocket connections at startup, multiple callers can enter _init() before the first one completes — so the client and encoder get initialized multiple times, or a second request reads partially-initialized state.
Needs to land after #28 (MilvusClient standardization) since both touch the same init path. Must be fixed before the Kagent-managed agent layer builds on top of these servers.
Acceptance Criteria
_init() is safe under concurrent calls — second caller blocks until first completes, then reuses the result
Hi! I'm an ECE student preparing my GSoC proposal around expanding this MCP server. I've successfully spun up the local kind cluster and traced this logic. I'd love to pick this up and submit a PR to add a thread lock to the _init() function. Could you assign this to me?
Activity
KavyaDabhi commentedon Mar 4, 2026
Hi! I'm an ECE student preparing my GSoC proposal around expanding this MCP server. I've successfully spun up the local
kindcluster and traced this logic. I'd love to pick this up and submit a PR to add a thread lock to the_init()function. Could you assign this to me?fix(mcp-server): use double-checked locking to prevent race condition…
chasecadet commentedon Nov 20, 2026
Thank you for reporting this!
We are closing pre-restructure issues targeting the legacy
server/,server-https/,manifests/,kagent-feast-mcp/, or in-processSentenceTransformerprototype code. In #207, #210, #233, #240, and #249,kubeflow/docs-agentmigrated to dedicated TEI (text-embeddings-inference), FastMCP (docs-agent-mcp/mcp-server/), shared modular KFP pipelines (docs-agent-mcp/pipelines/), and Helm charts (docs-agent-mcp/charts/).If you still observe an equivalent issue on the current
mainstack, please feel free to open a new issue using the current issue templates.