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: Do not close connection twice in DigestWithOptions (#21659) #21662

Merged
merged 2 commits into from
Jun 10, 2021

Conversation

davidby-influx
Copy link
Contributor

@davidby-influx davidby-influx commented Jun 10, 2021

tsm1.DigestWithOptions closes its network connection
twice. This may cause broken pipe errors on concurrent
invocations of the same procedure, by closing a reused
i/o descriptor. This fix also captures errors from TSM
file closures, which were previously ignored.

Closes #21656

(cherry picked from commit bce6553)

Closes #21660

Describe your proposed changes here.

tsm1.DigestWithOptions closes its network connection
twice. This may cause broken pipe errors on concurrent
invocations of the same procedure, by closing a reused
i/o descriptor. This fix also captures errors from TSM
file closures, which were previously ignored.

Closes #21656

(cherry picked from commit bce6553)
@davidby-influx davidby-influx requested a review from gwossum June 10, 2021 19:56
@davidby-influx davidby-influx self-assigned this Jun 10, 2021
Copy link
Member

@gwossum gwossum 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

@davidby-influx davidby-influx merged commit 5251c85 into master Jun 10, 2021
@davidby-influx davidby-influx deleted the DSB_digest_close2 branch June 10, 2021 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tsm area/2.x OSS 2.0 related issues and PRs kind/bug team/edge
Projects
None yet
2 participants