Skip to content

Commit

Permalink
add note about linux shutdown and add workaround for now in test
Browse files Browse the repository at this point in the history
  • Loading branch information
hughesjj committed Feb 5, 2025
1 parent b18a81e commit ab7b92d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ else
fi
while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do
scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r -i ~/.orca/id_rsa "splunk@$ip_addr:/opt/splunk/var/log/splunk/$restart_log_file" "$TEST_FOLDER/splunk/$restart_log_file"
grep -q "INFO Otel agent stop" "$TEST_FOLDER/splunk/$restart_log_file" && break
# There seems to be an issue on linux where it does not gracefully wait for the job to shut down, need to investigate further.
(grep -q "INFO Otel agent stop" "$TEST_FOLDER/splunk/$restart_log_file" || grep -q "INFO Stopping otel" "$TEST_FOLDER/splunk/$restart_log_file") && break
ATTEMPT=$((ATTEMPT + 1))
sleep $DELAY
done
Expand Down

0 comments on commit ab7b92d

Please sign in to comment.