Github user aledsage commented on a diff in the pull request: https://github.com/apache/brooklyn-server/pull/211#discussion_r68328600 --- Diff: software/base/src/main/java/org/apache/brooklyn/entity/software/base/lifecycle/MachineLifecycleEffectorTasks.java --- @@ -708,7 +710,21 @@ protected void doStop(ConfigBag parameters, Callable<StopMachineDetails<Integer> DynamicTasks.queue("pre-stop", new PreStopCustomTask()); + // BROOKLYN-263: + // With this change the stop effector will always wait for machinelocation to provision, so it can stop it. + // However in some situations if the stop effector is called in less than 8 seconds after start was called, + // it may be safe to skip this wait and proceed with stop. + // Hesitant about parameterising this. Maybe<MachineLocation> machine = Machines.findUniqueMachineLocation(entity().getLocations()); + if (machine.isAbsent()) { --- End diff -- This feels dangerous, for if start were to fail and not get a machine - we'd wait a long time, presumably.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---