You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Bento as a part of our Go process and we spawn multiple bento syncs at once.
We instantiate a new bento environment and stream builder for each one.
This seems to be causing data races when running go tests with -race flag.
We are using Bento as a part of our Go process and we spawn multiple bento syncs at once.
We instantiate a new bento environment and stream builder for each one.
This seems to be causing data races when running go tests with
-race
flag.Here is a really simple repo where this can be easily reproduced: https://github.com/nickzelei/benthos-stream-race
Here is the full stack trace:
The fix I've found is to simply wrap the builder code in a global mutex. It's safe to use after the
streambldr.Build
call.The text was updated successfully, but these errors were encountered: