Skip to content

Commit

Permalink
solr8 WIP print the solr ping response to screen on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
barmintor committed Dec 12, 2023
1 parent 8de8481 commit 5b993c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/tasks/dcv/docker.rake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ namespace :dcv do
end

def wait_for_solr_cores_to_load
expected_port = docker_compose_config['services']['solr']['ports'][0].split(':')[0]
solr_id = `docker compose -f #{Rails.root.join(docker_compose_file_path)} ps -q solr`

Timeout.timeout(20, Timeout::Error, 'Timed out during solr startup check.') do
Expand All @@ -23,6 +22,10 @@ namespace :dcv do
next
end
end
rescue Timeout::Error
expected_port = docker_compose_config['services']['solr']['ports'][0].split(':')[0]
puts `curl http://localhost:#{expected_port}/solr/dcv/admin/ping?wt=json`
raise
end

def running?
Expand Down

0 comments on commit 5b993c4

Please sign in to comment.