Open naemono opened 8 years ago
Ok, digging through the code this morning, I think I've found the issue.
Here:
https://github.com/CiscoCloud/mesos-consul/blob/master/mesos/mesos.go#L161
You're not checking if an error was returned from m.Registry.Deregister()
This seems more appropriate:
// Remove completed tasks
err := m.Registry.Deregister()
if err != nil {
log.Error(err)
}
I'll get a PR for this shortly.
@naemono any chance for the PR ? :christmas_tree:
This is more of a question than an issue.
i was wondering why I was getting duplicative service ids for the same service, even though it was an old deployment of the service.
from here:
https://github.com/CiscoCloud/mesos-consul/blob/master/mesos/mesos.go#L150-L158
It appears that only running tasks are investigated.
I'm seeing this in my setup:
Only one of these tasks is actually active.
Does de-registration not remove these?
Thanks for any further insight you can give.