Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit 0278689

Browse files
authored
Merge pull request #1283 from spotify/dxia/rolling-update-zk-log
master: log more info on ZK error when rolling-update fails
2 parents 389201d + a5920e7 commit 0278689

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

helios-services/src/main/java/com/spotify/helios/master/ZooKeeperMasterModel.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,8 @@ public void rollingUpdate(final DeploymentGroup deploymentGroup,
676676
throw new DeploymentGroupDoesNotExistException(deploymentGroup.getName());
677677
} catch (final KeeperException e) {
678678
throw new HeliosRuntimeException(
679-
"rolling-update on deployment-group " + deploymentGroup.getName() + " failed", e);
679+
"rolling-update on deployment-group " + deploymentGroup.getName() + " failed. "
680+
+ e.getMessage(), e);
680681
}
681682
}
682683

@@ -836,7 +837,8 @@ public void rollingUpdateStep() {
836837
log.info("rolling-update step on deployment-group was processed by another master"
837838
+ ": name={}, zookeeper operations={}", deploymentGroupName, ops);
838839
} catch (KeeperException e) {
839-
log.error("rolling-update on deployment-group {} failed", deploymentGroupName, e);
840+
log.error("rolling-update on deployment-group {} failed. {}", deploymentGroupName,
841+
e.getMessage(), e);
840842
}
841843
}
842844
} catch (final Exception e) {

0 commit comments

Comments
 (0)