Skip to content

Commit

Permalink
fix(titus): Re-enable saga retry on INVALID_ARGUMENT error due to rat…
Browse files Browse the repository at this point in the history
…e exceeded (#4800)

In #4796 we resolved an issue wherein a saga retry would skip a command under certain scenarios.  The particular failure scenario we had around retrying this error was due to that bug - now that it is fixed we should be able to safely retry here.
  • Loading branch information
jonsie committed Aug 17, 2020
1 parent bd03d7a commit ef222bf
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,13 @@ private boolean invalidArgumentConditional(String statusRuntimeExceptionMessage)
return false;
}

// There is a particular operation in CloudDriver WRT attaching a server group to a load
// balancer that does not behave as expected when retrying due to a rate exceeded error.
// We will disable retrying on this specific error until that issue has been debugged and
// resolved.
// boolean rateExceeded = statusRuntimeExceptionMessage.toLowerCase().contains("rate exceeded");
boolean rateExceeded = statusRuntimeExceptionMessage.toLowerCase().contains("rate exceeded");
boolean assumeRoleError =
statusRuntimeExceptionMessage.toLowerCase().contains("jobiamvalidator")
&& statusRuntimeExceptionMessage
.toLowerCase()
.contains("titus cannot assume into role");

return assumeRoleError;
return rateExceeded || assumeRoleError;
}
}

0 comments on commit ef222bf

Please sign in to comment.