Skip to content

Conversation

@jmank88
Copy link
Contributor

@jmank88 jmank88 commented Oct 15, 2025

Follow up from #19089

Wiring the CLI context directly through takes away the happens-before guarantee from cancelling in the shutdown goroutine after setting the shutdownStartTime, leading to a data race.

Comment on lines 333 to 334
shutdownStartTime = time.Now()
cancelRootCtx()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This must be the only cancellation of rootCtx.

@jmank88 jmank88 marked this pull request as ready for review October 15, 2025 13:21
@jmank88 jmank88 requested review from a team as code owners October 15, 2025 13:21
@jmank88 jmank88 enabled auto-merge October 15, 2025 13:21
@cl-sonarqube-production
Copy link

@jmank88 jmank88 added this pull request to the merge queue Oct 15, 2025
Merged via the queue into develop with commit 562fb41 Oct 15, 2025
204 of 205 checks passed
@jmank88 jmank88 deleted the 19089-race branch October 15, 2025 14:14
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.

3 participants