Created attachment 597045 [details]
Description of problem:
Votequorum should register reload callback only once and not after each
change in confdb.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Load votequorum plugin
2. corosync-objctl -c .usr
3. In log is corosync [VOTEQ ] Reading configuration
4. corosync-objctl -c .usr
5. In log appear another "corosync [VOTEQ ] Reading configuration" this time twice
6. corosync-objctl -c .usr
7. In log appear another "corosync [VOTEQ ] Reading configuration" this time three times
Votequorum register reload configuration handler after each change in confdb.
Votequorum register reload configuration handler only once.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Corosync running with votequorum enabled.
Votequorum register reload configuration handler after each change in confdb. This will cause in the beginning slow down of corosync and resulting to OOM, ...
Register callback only at startup
No slowdown, OOM, ...
with this snip in corosync.conf:
and debug set to on the following happens:
* corosync-objctl -w quorum.expected_votes
corosync [VOTEQ ] Reading configuration
* corosync-objctl -c qa; corosync-objctl -w qa.test=1
[ nothing from VOTEQ in logs ]
Behaves as expected. corosync-1.4.1-12.el6.x86_64.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.