mesosphere / spark-build

Used to build the mesosphere/spark docker image and the DC/OS Spark package
52 stars 34 forks source link

Stop agent's domain socket, which leads to systemd restarting the age… #582

Closed alexeygorobets closed 3 years ago

alexeygorobets commented 3 years ago

What changes were proposed in this pull request?

Fix for stopping Mesos agent in tests.

Once we take down the Mesos agent, if a task with an HTTP executor is running on the node, the executor will immediately attempt to connect to the agent's domain socket, which leads to systemd restarting the agent.

In order to prevent this, it looks like we now need to stop the Mesos agent using: sudo systemctl stop dcos-mesos-slave.service dcos-mesos-slave.socket Then, restarting the agent can be accomplished with: sudo systemctl start dcos-mesos-slave.service dcos-mesos-slave.socket

Related ticket - D2IQ-69935