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

Don't automatically add env life assertions to txns #2801

Merged
merged 8 commits into from Jul 17, 2015

Conversation

mjs
Copy link

@mjs mjs commented Jul 16, 2015

The multiEnvRunner will no longer automatically add assertions on environment life to transactions as this create a serious performance bottleneck. Instead, the env is asserted to be alive in specific key areas (mainly where a txn may result in provisioning of resources).

Fixes LP #1474195

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

Menno Smits added 8 commits July 16, 2015 10:55
...to environ.go in preparation for env life assert fix.
To be used to evaluate if a txn aborted because of the environment
life assertion.
Environment life is only asserted for top level machines, not
containers. Containers will get cleaned up anyway once the host
machine is killed.
This was creating a signficant performance bottleneck as almost all
txns were being serialised on the environment document.
@wallyworld
Copy link
Member

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Jul 16, 2015

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

@jujubot
Copy link
Collaborator

jujubot commented Jul 16, 2015

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

@wallyworld
Copy link
Member

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Jul 16, 2015

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

@mjs
Copy link
Author

mjs commented Jul 16, 2015

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Jul 16, 2015

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

@mjs
Copy link
Author

mjs commented Jul 17, 2015

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Jul 17, 2015

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

jujubot added a commit that referenced this pull request Jul 17, 2015
Don't automatically add env life assertions to txns

The multiEnvRunner will no longer automatically add assertions on environment life to transactions as this create a serious performance bottleneck. Instead, the env is asserted to be alive in specific key areas (mainly where a txn may result in provisioning of resources).

Fixes LP #1474195

(Review request: http://reviews.vapour.ws/r/2180/)
@jujubot jujubot merged commit 790cfab into juju:1.24 Jul 17, 2015
@mjs mjs deleted the 1474195-env-assert-removal-1.24 branch July 17, 2015 08:30
jujubot added a commit that referenced this pull request Jul 23, 2015
Don't automatically add env life assertions to txns

This is a forward port of #2801, fixing LP #1474195.

The multiEnvRunner will no longer automatically add assertions on environment life to transactions as this create a serious performance bottleneck. Instead, the env is asserted to be alive in specific key areas (mainly where a txn may result in provisioning of resources).

(Review request: http://reviews.vapour.ws/r/2231/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants