Skip to content

Conversation

@elliothllm
Copy link
Collaborator

@elliothllm elliothllm commented Oct 22, 2025

Addresses issue: #1962

Copilot AI review requested due to automatic review settings October 22, 2025 11:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses a data race issue in the stream server initialization by introducing a synchronization mechanism. The fix ensures that the PreStart method waits for the stream server to be fully initialized before attempting to use it.

Key Changes:

  • Added a channel-based synchronization mechanism to signal when the stream server is ready
  • Modified the stream server startup goroutine to signal readiness via channel closure
  • Updated PreStart to wait for the ready signal before proceeding with stream server operations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

make stream waiter chan have error
@elliothllm elliothllm force-pushed the fix/stream-server-data-race branch from db39041 to e48c919 Compare October 22, 2025 11:50
Copy link
Collaborator

@IvanBelyakoff IvanBelyakoff left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data race between StreamServer startup and atomic operations during initialization

3 participants