Skip to content

Moving optional RebuildKeyspace out of tests.#3268

Merged
alainjobart merged 1 commit intovitessio:masterfrom
alainjobart:vttablet
Oct 2, 2017
Merged

Moving optional RebuildKeyspace out of tests.#3268
alainjobart merged 1 commit intovitessio:masterfrom
alainjobart:vttablet

Conversation

@alainjobart
Copy link
Copy Markdown
Contributor

vttablet's ActionAgent has three startup methods:

  1. real production tablet
  2. vtcombo in-memory tablet
  3. in-memory test tablet for unit tests
    The optional RebuildKeyspace when SrvKeyspace doesn't exist only needs
    to be done in case .1, not 2. and 3. vtcombo does an explicit rebuild
    after having fully created the keyspace (so we don't need the background
    intermediate ones that will fail and spam the logs anyway). in-memory
    tests don't ususally need the SrvKeyspace (and if they do, they could
    call it).

vttablet's ActionAgent has three startup methods:
1. real production tablet
2. vtcombo in-memory tablet
3. in-memory test tablet for unit tests
The optional RebuildKeyspace when SrvKeyspace doesn't exist only needs
to be done in case .1, not 2. and 3. vtcombo does an explicit rebuild
after having fully created the keyspace (so we don't need the background
intermediate ones that will fail and spam the logs anyway). in-memory
tests don't ususally need the SrvKeyspace (and if they do, they could
call it).
@michael-berlin
Copy link
Copy Markdown
Contributor

michael-berlin commented Oct 2, 2017

LGTM

Approved with PullApprove

@alainjobart alainjobart merged commit 4657600 into vitessio:master Oct 2, 2017
@alainjobart alainjobart deleted the vttablet branch October 2, 2017 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants