Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Disable libgit2 multi-threading #36

Merged
merged 2 commits into from
Jul 31, 2022
Merged

Disable libgit2 multi-threading #36

merged 2 commits into from
Jul 31, 2022

Conversation

pjbgf
Copy link
Member

@pjbgf pjbgf commented Jul 29, 2022

Some users are experiencing segfault issues in Flux controllers which seem to be related to internal git2go state being processed within a background thread.

Due to the shift into Managed Transport only, the concerns around multi-threading from a libgit2 seem to be less problematic
than otherwise, as the management of the transport will be handled by Go.

We are temporarily running a fork of git2go whilst we wait to see what will happen upstream (libgit2/git2go#918). We also added a check on make dev-test to ensure the libgit2 version we are consuming was built without thread support.

// of libgit2 without thread support to fix:
// fluxcd/image-automation-controller/#339.
//
// This can be removed once libgit2/git2go#918 is merged.
Copy link
Member

Choose a reason for hiding this comment

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

Please link the current PR to the git2go one. We may want to move this fork under fluxcd org if it's not going to be accepted upstream.

Paulo Gomes added 2 commits July 31, 2022 11:33
Some users are experiencing segfault issues in Flux controllers
which seem to be related to internal git2go state processed within a
background thread.
Due to the shift into Managed Transport only, the concerns
around multi-threading from a libgit2 seem to be less problematic
than otherwise, as the management  of the transport will
be handled by Go.

fluxcd/image-automation-controller#339
https://github.com/libgit2/libgit2/blob/main/docs/threading.md

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
@pjbgf pjbgf merged commit 9465ace into fluxcd:main Jul 31, 2022
@pjbgf pjbgf deleted the no-thread branch July 31, 2022 10:43
@pjbgf pjbgf added this to the GA milestone Aug 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants