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

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

Merged
merged 4 commits into from
Mar 16, 2016

Conversation

michael-berlin
Copy link
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
Copy link
Member

enisoc commented Mar 15, 2016

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
Copy link
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.

None yet

3 participants