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
// cmux auto-retries Accept() by default. Tell it// to stop doing work if we see a request to shut down.m.HandleError(func(errerror) bool {
select {
case<-stopper.ShouldQuiesce():
log.Infof(ctx, "server shutting down: instructing cmux to stop accepting")
returnfalsedefault:
returntrue
}
})
Since the error handler outlives the startup, it should be using the
workersCtx.
I suspect this is the cause of cockroachdb#97032 but I haven't been able to
reproduce that locally in a unit test.
Fixescockroachdb#93032
Epic: none
Release note: none
97555: server: use workersCtx in cmux error handler r=knz a=stevendanna
Since the error handler outlives the startup, it should be using the workersCtx.
I suspect this is the cause of #97032 but I haven't been able to reproduce that locally in a unit test.
Fixes#93032
Epic: none
Release note: none
Co-authored-by: Steven Danna <danna@cockroachlabs.com>
Describe the problem
When attempting to write a roachtest that drains a server, I occasionally see:
It looks like this is caused by:
Perhaps we should have used workersCtx there.
Jira issue: CRDB-24478
The text was updated successfully, but these errors were encountered: