ctdb-scripts: Make initial statistics output empty
commit18a29ed367278849889a846bb93f49afd0c045a8
authorMartin Schwenke <mschwenke@ddn.com>
Sat, 29 Jun 2024 09:24:25 +0000 (29 19:24 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 20 Aug 2024 22:50:34 +0000 (20 22:50 +0000)
treec37c690a0afd1e4fe24ce2fe420a916066a6b393
parent032b7b49c9f50fa8e4e049d066e5f1ddb6295d89
ctdb-scripts: Make initial statistics output empty

This makes initial failure to retrieve statistics less likely to
result in a statistics change.  To help with this, statistics
retrieval stderr now goes to the log - only stdout goes to the file.

This means that the test code for checking statistics changes needs to
be redone to actually run the statistics command and check.  As with
rpcinfo output, this output needs to behave as deterministically in
the test code as it done in the event script.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/events/legacy/60.nfs.script
ctdb/tests/UNIT/eventscripts/60.nfs.monitor.115.sh
ctdb/tests/UNIT/eventscripts/60.nfs.monitor.116.sh
ctdb/tests/UNIT/eventscripts/60.nfs.monitor.117.sh
ctdb/tests/UNIT/eventscripts/60.nfs.monitor.118.sh
ctdb/tests/UNIT/eventscripts/60.nfs.monitor.119.sh [copied from ctdb/tests/UNIT/eventscripts/60.nfs.monitor.118.sh with 57% similarity]
ctdb/tests/UNIT/eventscripts/scripts/60.nfs.sh