Project: springxd
Issue XD-1549: Proactively handle failed deployments
When a deployment fails on a container due to a misconfiguration, the container does not notify the admin. Instead the admin waits for the container to write out an ephemeral node to the definition path {{/xd/streams}} or {{/xd/jobs}} to indicate a successful deployment and if the path isn't written in 10 seconds the deployment is considered failed. This "timeout" should be considered a heuristic failure, meaning that the container was not able to write out a response of success or failure. If the deployment fails, the container needs to indicate this by writing a node to ZK.
Story points: 10