-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[WIP] hitless #3447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: ndyakov/CAE-1088-resp3-notification-handlers
Are you sure you want to change the base?
[WIP] hitless #3447
Conversation
49e5814
to
43aef14
Compare
8608f93
to
a39a23a
Compare
e88e673
to
4542e8f
Compare
9590c26
to
100c3d2
Compare
ed9b281
to
08516d4
Compare
08516d4
to
34edec2
Compare
e3b4e8d
to
6d61830
Compare
6d61830
to
a4090d4
Compare
0c5e583
to
0091c74
Compare
bd02c37
to
d3c3eb7
Compare
8e73688
to
aabfdaa
Compare
go func() { | ||
time.Sleep(time.Duration(timeS/2) * time.Second) | ||
if err := snh.markConnForHandoff(poolConn, newEndpoint, seqID, deadline); err != nil { | ||
// Log error but don't fail the goroutine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check conn existence before that, make sure it is not closed
// delay the handoff for timeS/2 seconds to the same endpoint | ||
// do this in a goroutine to avoid blocking the notification handler | ||
go func() { | ||
time.Sleep(time.Duration(timeS/2) * time.Second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can use "last used at" for better calculation here? It won't be correct to determine when the connection was last used, but we can try.
@@ -29,7 +29,7 @@ test.ci: | |||
(cd "$${dir}" && \ | |||
go mod tidy -compat=1.18 && \ | |||
go vet && \ | |||
go test -v -coverprofile=coverage.txt -covermode=atomic ./... -race -skip Example); \ | |||
go test -v -coverprofile=coverage.txt -covermode=atomic ./... -race -timeout 20m -skip Example); \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be returned to 10m (by default)
No description provided.