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 reinitialize a TEST_MIRROR (duplicate work) on REUSE_DB=1. #237

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wdoekes
Copy link
Contributor

@wdoekes wdoekes commented Oct 15, 2015

When using REUSE_DB=1 and a setup with more than one database, where the
other databases point to the first one, using the TEST_MIRROR setting,
Nose would sqlflush both databases.

When there is lots of work or a slow link, running ALTER TABLE to reset
the auto increment on all tables can take more than a few seconds.
Before this fix, the whole process would be done a second time on the
test-mirror database -- which is the same.

When using REUSE_DB=1 and a setup with more than one database, where the
other databases point to the first one, using the TEST_MIRROR setting,
Nose would sqlflush both databases.

When there is lots of work or a slow link, running ALTER TABLE to reset
the auto increment on all tables can take more than a few seconds.
Before this fix, the whole process would be done a second time on the
test-mirror database -- which is the same.
@wdoekes
Copy link
Contributor Author

wdoekes commented Oct 15, 2015

I'm sorry. I don't have time to find out how to write unit tests for this, this time.

@jwhitlock jwhitlock added the bug label Oct 19, 2015
@jwhitlock
Copy link
Contributor

Is this the same issue as #236 ?

@wdoekes
Copy link
Contributor Author

wdoekes commented Oct 19, 2015

@jwhitlock: No, I'm not experiencing any issues with the test_mirror db itself -- possibly because we don't run tests on the mirror, I haven't checked. This issue is just about double initialization of the (same) db.

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

Successfully merging this pull request may close these issues.

2 participants