Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

uv_append: Check if segment wasn't closed in write request cb #267

Merged
merged 1 commit into from
Mar 4, 2022

Conversation

MathieuBordere
Copy link
Contributor

@MathieuBordere MathieuBordere commented Mar 4, 2022

Fixes an instance of #245.

The callback of the append request being fired by the write completing, could trigger a new append that finalized the segment that was just written to, leading to the assertion being triggered. I was able to reproduce this in a couple of longer running tests, with this fix, the issue disappeared.

Signed-off-by: Mathieu Borderé mathieu.bordere@canonical.com

Signed-off-by: Mathieu Borderé <mathieu.bordere@canonical.com>
@stgraber stgraber merged commit ced1ca7 into canonical:master Mar 4, 2022
@tomponline
Copy link
Member

Thanks for this! :)

@MathieuBordere MathieuBordere deleted the writer-closing branch December 9, 2022 10:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants