Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

UI dashboard doesn't display redis instances after restart sched, /v1/status return null #68

Open
zousheng opened this issue Jul 14, 2017 · 1 comment

Comments

@zousheng
Copy link

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.

@zousheng
Copy link
Author

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
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant