Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Bug 1065047 - changed exception raised to NodeUnavailableException to…
Browse files Browse the repository at this point in the history
… indicate retry advisable (503)
  • Loading branch information
Lili Nader committed Apr 16, 2014
1 parent 0481c1f commit c66d9cf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3428,12 +3428,12 @@ def self.get_rpc_client(agent, options)
flags = { :options => options, :exit_on_failure => false }
begin
rpc_client = rpcclient(agent, flags)
return rpc_client
rescue Exception => e
Rails.logger.error "Exception raised by rpcclient:#{e.message}"
Rails.logger.error (e.backtrace)
raise OpenShift::NodeException.new(e)
raise OpenShift::NodeUnavailableException.new(e)
end
return rpc_client
end

#
Expand Down Expand Up @@ -3563,9 +3563,9 @@ def self.execute_parallel_jobs_impl(handle)
return unless handle.present?

start_time = Time.new
options = MCollectiveApplicationContainerProxy.rpc_options.merge(custom_options)
rpc_client = MCollectiveApplicationContainerProxy.get_rpc_client('openshift', options)
begin
options = MCollectiveApplicationContainerProxy.rpc_options.merge(custom_options)
rpc_client = MCollectiveApplicationContainerProxy.get_rpc_client('openshift', options)
identities = handle.keys
rpc_client.custom_request('execute_parallel', mc_args, identities, {'identity' => identities}).each { |mcoll_reply|
if mcoll_reply.results[:statuscode] == 0
Expand Down

0 comments on commit c66d9cf

Please sign in to comment.