Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

sqliterepo: prevent unneeded loop at election start #1819

Merged
merged 5 commits into from
Jun 28, 2019

Conversation

fvennetier
Copy link
Member

@fvennetier fvennetier commented Jun 24, 2019

SUMMARY

External DB_VERS requests used to create the database, but internal ones did not. This resulted in a meta2 service never being elected master during M2_CREATE requests. Now that the internal requests also create the database, a simple benchmark shows a 3x performance increase (3x more meta2 databases created per second).

Jira: OS-411

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
  • sqliterepo
SDS VERSION
openio 4.2.10.dev2

@fvennetier fvennetier force-pushed the election-start-without-database branch from bab3fdc to e3eaf64 Compare June 25, 2019 07:00
@fvennetier fvennetier force-pushed the election-start-without-database branch from 9d4366c to 4d1b601 Compare June 25, 2019 15:27
If the database has just been created, the cached admin table does not
contain new entries. These entries may be required by the change
callback, and thus we need to reload the whole admin table before
calling it.

Jira: OS-107
External DB_VERS requests used to create the database, but internal ones
did not. This resulted in a meta2 service never being elected master
during M2_CREATE requests.

Jira: OS-411
@fvennetier fvennetier force-pushed the election-start-without-database branch from 08a4a5e to 7db4826 Compare June 26, 2019 14:26
@fvennetier
Copy link
Member Author

The original patch did not work as expected. Meta2 rebuilders showed too many errors. I had to rework the pull request completely.

@murlock murlock self-requested a review June 26, 2019 15:46
@AymericDu AymericDu self-requested a review June 27, 2019 17:01
@fvennetier fvennetier merged commit d070eca into open-io:4.2.x Jun 28, 2019
@fvennetier fvennetier deleted the election-start-without-database branch June 28, 2019 08:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants