Skip to content
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

fix: don't wait for the identify exchange to complete before draining buckets #81

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

@dennis-tra dennis-tra requested a review from cortze October 28, 2024 09:01
Copy link
Collaborator

@cortze cortze left a comment

Choose a reason for hiding this comment

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

Looks good to me! I'm just confused about the origin and the differences between the "stream closed" error and the "stream reset". Should we track them separately in the DB?

@@ -29,6 +29,7 @@ var KnownErrors = map[string]string{
"max dial attempts exceeded": models.NetErrorMaxDialAttemptsExceeded,
"host is down": models.NetErrorHostIsDown,
"stream reset": models.NetErrorStreamReset,
"stream closed": models.NetErrorStreamReset,
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we create a new models.NetErrorStreamClosed entry for this error?
(I'm not 100% sure if it just means the same as the "stream reset" one)

Copy link
Owner Author

Choose a reason for hiding this comment

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

yeah, I'm lazy and didn't want to add a migration just for this error code 🙈

It's not exactly the same as a stream reset but for analysis purposes I'd say we can treat it equally

@dennis-tra dennis-tra merged commit aecb349 into main Oct 28, 2024
1 check passed
@dennis-tra dennis-tra deleted the parallel-drain branch October 28, 2024 17:01
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.

2 participants