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

cshared: plugin: Tweak for workflow of registerWG #95

Closed
wants to merge 1 commit into from

Conversation

cosmo0920
Copy link
Contributor

During to confirm the behavior of Golang plugin loading for fluent/fluent-bit#9729,
I found that Golang plugins are not loaded due to glitches of waitgroup add/done sequence.

Now, we have FLBPreRegister callback which is ensured to be executed before entering FLBPluginRegister.
With using this callback, we can ensure the add/done sequence of registerWG wait group.

Now, we have FLBPreRegister callback which is ensured to be executed
before entering FLBPluginRegister.
With using this callback, we can ensure the add/done sequence of
registerWG wait group.

Signed-off-by: Hiroshi Hatake <[email protected]>
@cosmo0920 cosmo0920 requested a review from a team as a code owner December 17, 2024 06:42
@cosmo0920
Copy link
Contributor Author

cosmo0920 commented Dec 17, 2024

Hmmm, fluent-bit side's implementation for loading external plugins including Golang plugins should be wrong.

@cosmo0920 cosmo0920 closed this Dec 17, 2024
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.

1 participant