HomeClusterLabs Projects

Low: add debugging aid to help spot missing set_msg_callback()s on heartbeat

Description

Low: add debugging aid to help spot missing set_msg_callback()s on heartbeat

In ha_msg_dispatch(), change from rcvmsg() to readmsg().
rcvmsg() is internally simply a wrapper around readmsg(),
which silently deletes messages without matching callback.

Use readmsg() directly here. It will only return unprocessed (by
callbacks) messages, so log a warning, notice or debug message
depending on message header information, and ha_msg_del() it ourselves.

Details

Provenance
Lars Ellenberg <lars.ellenberg@linbit.com>Authored on Dec 9 2014, 4:58 AM
Parents
rPcc34288a7b22: High: fix stonith ignoring its own messages on heartbeat
Branches
Unknown
Tags
Unknown

Event Timeline