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

Replace agent machine lock with juju/mutex #5659

Merged

Conversation

howbazaar
Copy link
Contributor

@howbazaar howbazaar commented Jun 19, 2016

This work completely removes all use of fslock from the juju core codebase.

The uniter hook execution log is now a named juju/mutex. The name is defined as a constant in the agent package, and passed to the workers that need it as manifold configuration.

The jujuclient store fslock is replaced with a global mutex. Since this mutex is only guarding around very bried read or write operations to a file, a system lock will have no appreciable difference to a user. A follow up branch could fix this should it become a real problem (which I don't think it will).

(Review request: http://reviews.vapour.ws/r/5103/)

This work completely removes all use of fslock from the juju core codebase.

The uniter hook execution log is now a named juju/mutex. The name is defined as a constant in the agent package, and passed to the workers that need it as manifold configuration.

The jujuclient store fslock is replaced with a global mutex. Since this mutex is only guarding around very bried read or write operations to a file, a system lock will have no appreciable difference to a user. A follow up branch could fix this should it become a real problem (which I don't think it will).
@howbazaar howbazaar force-pushed the replace-agent-machine-lock-with-mutex branch from 09c8643 to 4bf3160 Compare June 20, 2016 01:50
@howbazaar
Copy link
Contributor Author

$$JFDI$$ this really needs to get in. fslock has caused us so much pain.

@jujubot
Copy link
Collaborator

jujubot commented Jun 20, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot
Copy link
Collaborator

jujubot commented Jun 20, 2016

Build failed: Tests failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/8187

@howbazaar
Copy link
Contributor Author

$$intermittent-errors$$

@jujubot
Copy link
Collaborator

jujubot commented Jun 20, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

jujubot added a commit that referenced this pull request Jun 20, 2016
…th-mutex

Replace agent machine lock with juju/mutex

This work completely removes all use of fslock from the juju core codebase.

The uniter hook execution log is now a named juju/mutex. The name is defined as a constant in the agent package, and passed to the workers that need it as manifold configuration.

The jujuclient store fslock is replaced with a global mutex. Since this mutex is only guarding around very bried read or write operations to a file, a system lock will have no appreciable difference to a user. A follow up branch could fix this should it become a real problem (which I don't think it will).

(Review request: http://reviews.vapour.ws/r/5103/)
@jujubot jujubot merged commit d6583f1 into juju:master Jun 20, 2016
@howbazaar howbazaar deleted the replace-agent-machine-lock-with-mutex branch October 10, 2018 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants