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(tsi): fix short write #21931

Open
wants to merge 1 commit into
base: master-1.x
Choose a base branch
from

Conversation

lifeibo
Copy link

@lifeibo lifeibo commented Jul 23, 2021

Closes #21712

FlushAndSync must be call under the protect of lock, otherwise, the buffer may be written more data while flush to file and return io.ShortWrite.

@lifeibo lifeibo changed the title fix(tsi): Fix short write fix(tsi): fix short write Jul 23, 2021
@lesam
Copy link
Contributor

lesam commented Nov 24, 2021

@lifeibo do you have a test case that proves this solves the problem you are attempting to solve?

@serenibyss serenibyss added the 1.x label Apr 14, 2022
@altery
Copy link

altery commented Apr 27, 2022

Any chance that this PR is reviewed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants