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

Deadlock Issue when submitting new jobs to genie #67

Closed
amitsharma1981 opened this issue Jun 11, 2014 · 1 comment
Closed

Deadlock Issue when submitting new jobs to genie #67

amitsharma1981 opened this issue Jun 11, 2014 · 1 comment
Labels

Comments

@amitsharma1981
Copy link
Contributor

In Genie, the Janitor Thread periodically runs to check jobs which don't have update time changed in the last configured time. At the same time, when a new job is submitted after the initial init in the db, genie tries to run an update query changing status to RUNNING after launching the job.

The above two threads end up in a deadlock, causing the job to remain in INIT state in db, but the process gets launched successfully.

We should retry this update call to see if that fixes the issue.

amitsharma1981 pushed a commit that referenced this issue Jun 11, 2014
… 2*.

* #67 - Added retries while updating the job to status running after successful launch.
* Changed scripts to create a sample cluster with version 2.4.0.
@amitsharma1981
Copy link
Contributor Author

Deployed and verified the fix in our production environment. The job was successfully submitted in-spite of hitting a deadlock in production and there has been no 5xx errors since deployment last week. Will re-open if the problem happens again.

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

No branches or pull requests

1 participant