Skip to content

tabletmanager: Add integration test for immediate health broadcast after state changes. - #1569

Merged
michael-berlin merged 4 commits into
vitessio:masterfrom
michael-berlin:healthcheck_unit_test
Mar 16, 2016
Merged

michael-berlin merged 4 commits into
vitessio:masterfrom
michael-berlin:healthcheck_unit_test

Conversation

@michael-berlin

Copy link
Copy Markdown
Contributor

@alainjobart @enisoc

This adss a test for the change in #1551.

I've also refactored the test in general and made it more "tight": It has to consume each health broadcast message now and mustn't leave out any.


This change is Reviewable

@enisoc

enisoc commented Mar 15, 2016

Copy link
Copy Markdown
Contributor

LGTM other than comment above.

Approved with PullApprove

…oadcast message knowingly.

Since my change in commit cdf9478 we broadcast more health messages now. Before this change, healthcheck_test.go would just ignore the extra messages. Now, it's part of the test which health broadcast message with which data we expect at each point in time.

I've also added support for verifying all state changes since I found an issue where the QueryService is running although TabletControl disables it.
…mediately when the QueryService state changes.

Note: The code for the immediate health messages was introduced in commit cdf9478.
In case of the special cases mentioned in the comment, we also enter the lameduck mode. See the code in state_change.go for what is actually implemented.
@michael-berlin
michael-berlin force-pushed the healthcheck_unit_test branch from 839fe0f to 1030ecf Compare March 16, 2016 15:37
@michael-berlin

Copy link
Copy Markdown
Contributor Author

I've addressed your comment and removed the comment in the code.

michael-berlin added a commit that referenced this pull request Mar 16, 2016
tabletmanager: Add integration test for immediate health broadcast after state changes.
@michael-berlin
michael-berlin merged commit 177ff97 into vitessio:master Mar 16, 2016
@michael-berlin
michael-berlin deleted the healthcheck_unit_test branch March 16, 2016 18:17
systay pushed a commit to planetscale/vitess that referenced this pull request Mar 7, 2023
* fix: aggregation coming from right hand side of left join check for null



* test: added a sum test



* addressed review comments



---------

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
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