[Tarantool-patches] [PATCH v2 3/5] feedback_daemon: send feedback on server start

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Sat Apr 10 00:53:37 MSK 2021


Hi! Thanks for the patchset!

On 08.04.2021 15:38, Serge Petrenko via Tarantool-patches wrote:
> Send the first report as soon as instance's initial configuration
> finishes.
> 
> Part of #5750
> ---
>  src/box/lua/feedback_daemon.lua | 10 ++++++++++
>  src/box/lua/load_cfg.lua        | 34 ++++++++++++++++++++++-----------
>  2 files changed, 33 insertions(+), 11 deletions(-)
> 
> diff --git a/src/box/lua/feedback_daemon.lua b/src/box/lua/feedback_daemon.lua
> index d00eedf39..43bbc1fa2 100644
> --- a/src/box/lua/feedback_daemon.lua
> +++ b/src/box/lua/feedback_daemon.lua
> @@ -323,6 +323,12 @@ local function fill_in_feedback(feedback)
>      return feedback
>  end
>  
> +-- fixme: remove this hack.
> +-- It's here to prevent too early feedback sending.
> +-- This leads to problems with thread sanitization after fork() on Mac OS.
> +-- Google objc_initializeAfterForkError for details.
> +local is_first_send = true

Have you tried this?
https://stackoverflow.com/questions/50168647/multiprocessing-causes-python-to-crash-and-gives-an-error-may-have-been-in-progr

We could add it to the CI jobs so the env variable would be
set. And set it manually on our own machines.

You can also use jit.os to start it without a delay on
non-Mac machines. On Mac jit.os == 'OSX'. I see we use it
in some places, so it looks legal and working.


More information about the Tarantool-patches mailing list