Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
AMBARI-25473 Upgrade Infra Solr Clients fails if it is installed on o…
…nly one host (santal via oleewere)
  • Loading branch information
sziszo authored and oleewere committed Feb 10, 2020
1 parent 5795f9e commit de3edc577467d03d0156850b217320530479e2c4
Showing 1 changed file with 6 additions and 1 deletion.
@@ -508,6 +508,11 @@ def upgrade_solr_clients(options, accessor, parser, config):
host = socket.gethostname()
if host in solr_client_hosts:
solr_client_hosts.remove(host)

if not len(solr_client_hosts):
print 'The Solr Clients upgrade request has been aborted because no other host can be upgraded.'
sys.exit(0)

context = "Upgrade Solr Clients"
sys.stdout.write("Sending upgrade request: [{0}] ".format(context))
sys.stdout.flush()
@@ -2078,4 +2083,4 @@ def transfer_old_data(options, accessor, parser, config):
print 30 * "-"
print "Command elapsed time: {0}".format(time_to_print)
print 30 * "-"
print "Migration helper command {0}FINISHED{1}".format(colors.OKGREEN, colors.ENDC)
print "Migration helper command {0}FINISHED{1}".format(colors.OKGREEN, colors.ENDC)

0 comments on commit de3edc5

Please sign in to comment.