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

Commit

Permalink
Merge pull request #353 from ContainerSolutions/bug/cluster-id-write-…
Browse files Browse the repository at this point in the history
…before-start

writing cluster ID before attempting to start it
  • Loading branch information
sadovnikov committed Mar 30, 2016
2 parents a80240b + fdea879 commit c6750c0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,14 @@ public void execute() {
ClusterArchitecture clusterArchitecture = getClusterArchitecture();

startedCluster = new MesosCluster(clusterArchitecture);
// save cluster ID first, so it becomes available for 'destroy' even if its part failed to start
ClusterRepository.saveClusterFile(startedCluster);

startedCluster.start();
startedCluster.waitForState(state -> state != null);

startedCluster.printServiceUrls(output);

ClusterRepository.saveClusterFile(startedCluster);
}

/**
Expand Down

0 comments on commit c6750c0

Please sign in to comment.