mesos / chronos

Fault tolerant job scheduler for Mesos which handles dependencies and ISO8601 based schedules
http://mesos.github.io/chronos/
Apache License 2.0
4.39k stars 529 forks source link

chronos may redirect to itself #656

Open jinzhao1994 opened 8 years ago

jinzhao1994 commented 8 years ago

Sometimes, a slave server may try to be the leader. It wrote the log as this:

[INFO] [JobScheduler STARTING] 03-21 12:25:24,958 [JobScheduler] - Trying to become leader.

In fact, it wasn't selected as leader, because it didn't write any log as this:

[JobScheduler] - Elected as leader.

But after that, when I do some http request to this node, it start to redirect to itself. I can't receive any answer. And this slave server will print a lot of log, "[RedirectFilter] - Proxying request to ", to itself.

Then the slave server will block. After printed more than 200 redirect logs, it stop printing any log.

I restarted the chronos service on that slave server, then it became normal.

jinzhao1994 commented 8 years ago

I hopes to know why this will happen. How to prevent it. It has been occured twice this month. QAQ

jinzhao1994 commented 8 years ago

The version of Mesos is 0.28.0 The version of Chronos is 2.4.0