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

Merged
merged 8 commits into from Jul 17, 2015

Conversation

Projects
None yet
3 participants
Contributor

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/)

mjs added some commits Jul 15, 2015

state: moved assertEnvAliveOp...
...to environ.go in preparation for env life assert fix.
state: added env life assertions for machine creation
Environment life is only asserted for top level machines, not
containers. Containers will get cleaned up anyway once the host
machine is killed.
state: added checkEnvLife helper
To be used to evaluate if a txn aborted because of the environment
life assertion.
state: removed automatic addition of env life asserts
This was creating a signficant performance bottleneck as almost all
txns were being serialised on the environment document.
Owner

wallyworld commented Jul 16, 2015

$$merge$$

Contributor

jujubot commented Jul 16, 2015

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

Contributor

jujubot commented Jul 16, 2015

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

Owner

wallyworld commented Jul 16, 2015

$$merge$$

Contributor

jujubot commented Jul 16, 2015

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

Contributor

mjs commented Jul 16, 2015

$$merge$$

Contributor

jujubot commented Jul 16, 2015

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

Contributor

mjs commented Jul 17, 2015

$$merge$$

Contributor

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

Merge pull request #2801 from mjs/1474195-env-assert-removal-1.24
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 mjs:1474195-env-assert-removal-1.24 branch Jul 17, 2015

jujubot added a commit that referenced this pull request Jul 23, 2015

Merge pull request #2851 from mjs/1474195-env-assert-removal
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