Comment 3 for bug 2025504

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ha (master)

Reviewed: https://review.opendev.org/c/starlingx/ha/+/887426
Committed: https://opendev.org/starlingx/ha/commit/d91b069daf43161c52120bc146422c2f8704bedb
Submitter: "Zuul (22348)"
Branch: master

commit d91b069daf43161c52120bc146422c2f8704bedb
Author: Bin Qian <email address hidden>
Date: Fri Jun 30 18:42:35 2023 +0000

    Avoid potential blocking of heartbeat thread

    This is to avoid waiting for hbs cluster query for sending SM alive
    pulse. When a hbs cluster query or alive pulse is being sent, do not
    queue the subsequent alive pulse, as current request being sent is good
    enough to update hbs agent.
    Also move the function retrieving sock address to initial from inside
    the query sending procedure. The function getaddrinfo to avoid indirectly
    calling malloc, which invokes malloc_atfork to potentially a blocking call.

    TCs:
       This could improve in extreme situation only, passed regression.

    Closes-bug: 2025504

    Change-Id: I520b42f0330b670e301279c2e42670d40361adc5
    Signed-off-by: Bin Qian <email address hidden>