Add a retry mechanism for introspection
Some processes, when starting up have long delays after registering on
the D-Bus that cause the mapper to timeout on introspection. The mapper
should be more resilient and retry several times before giving up.
This adds a 3X retry as a balance between never giving up and breaking
without cause.
Example errors before this change:
phosphor-mapper[245]: Introspect call failed with error: generic:110,
Connection timed out on process: xyz.openbmc_project.CPUSensor path: /
phosphor-mapper[245]: Introspect call failed with error: generic:110,
Connection timed out on process: xyz.openbmc_project.EntityManager path:
/xyz/openbmc_project/EntityManager
Tested: Boot and see that there are no Introspect call failed timeuot
messages.
Change-Id: I08c0219f445340588d973a2a19ade5a045b3f82e
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
2 files changed