Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Same node could reclaim a lost task #50

Open
schmichael opened this issue Oct 16, 2014 · 0 comments
Open

Same node could reclaim a lost task #50

schmichael opened this issue Oct 16, 2014 · 0 comments

Comments

@schmichael
Copy link
Contributor

Scenario to test:

  1. Node is under load and doesn't refresh a Task before TTL expires.
  2. Node's Watcher claims newly released Task (before refresh CAS is attempted).

If this happens there are a few things that could happen:

  • 2 refreshers are started for the claim key... this actually wouldn't hurt anything AFAICT, just be very strange.
  • The consumer will refuse to start the new task because it's already running that task.

So while there could be some strange errors and a needless restart of a task, it shouldn't be fatal to the node or task.

Needs a test.

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

No branches or pull requests

1 participant