Open zousheng opened 7 years ago
From the code, it seems typ.MemDb.I is nil when restarting scheduler, just wondering why the instances are not loading from DB (in my case, it's zk) after restarting, is this a bug?
//StatusAll handles StatusAll REST call func (this *MainController) StatusAll() {
var statusAll []typ.Instance_Json
if len(typ.MemDb.I) == 0 {
this.Ctx.WriteString("[]")
return
}
Hi,
/v1/status return null after restarting sched, and the fact is that all the redis instances are still running in mesos agents, to fix this, I have to manually run "curl ip:5656/v1/STATUS/sdb_test" to get redis "sdb_test" information, this call returns information, then "curl ip:5656/v1/STATUS" call returns sdb_test redis information, so there is something wrong in the /v1/STATUS call, it's not working as expected.