Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,13 @@ public URI startLRA(URI parentLRA, String clientID, Long timeout, ChronoUnit uni
// Handle connection exceptions, async timeout, and execution failures
Throwable t = e.getCause();

if (supportsFailover && i == coordinatorCount - 1) {
if (!supportsFailover) {
String errMsg = LRALogger.i18nLogger.warn_startLRAFailed(e.getMessage());
LRALogger.logger.warn("Start LRA failed and failover is not enabled: " + e.getMessage());
LRALogger.logger.warn(errMsg, e);
throw new WebApplicationException(Response.status(SERVICE_UNAVAILABLE).entity(errMsg).build());
}
if (i == coordinatorCount - 1) {

String errMsg = "";
if (t instanceof ServiceUnavailableException) {
Expand Down