Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[no-release-notes] Added a sanity check for server heartbeat emission #8901

Merged
merged 1 commit into from
Feb 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions integration-tests/bats/send-metrics.bats
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ teardown() {

wc=`grep SQL_SERVER_HEARTBEAT heartbeats.out | wc -l`
[ $wc -gt 0 ]

# make sure we don't emit until the timer goes off
DOLT_EVENTS_EMITTER=logger DOLT_SQL_SERVER_HEARTBEAT_INTERVAL=10s dolt sql-server -l debug > heartbeats.out 2>&1 &
server_pid=$!
sleep 5
kill $server_pid

cat heartbeats.out

wc=`grep SQL_SERVER_HEARTBEAT heartbeats.out | wc -l`
[ $wc -eq 0 ]
}

# TODO: we need a local metrics server here that we can spin up to verify the send actually works
Expand Down
Loading