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>
Reviewed: https:/ /review. opendev. org/c/starlingx /ha/+/887426 /opendev. org/starlingx/ ha/commit/ d91b069daf43161 c52120bc146422c 2f8704bedb
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit d91b069daf43161 c52120bc146422c 2f8704bedb
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: I520b42f0330b67 0e301279c2e4267 0d40361adc5
Signed-off-by: Bin Qian <email address hidden>