Merged
Conversation
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
deepthi
reviewed
Jun 17, 2022
Collaborator
deepthi
left a comment
There was a problem hiding this comment.
The changes look good.
I'm just wondering if it is possible to write a test for this at all.
If that is too hard, can you confirm that this was verified via manual testing?
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
…t config Signed-off-by: Manan Gupta <manan@planetscale.com>
c8058bb to
fd8f7c6
Compare
Contributor
Author
|
@deepthi Yes, when I found the problem, I jumped and fixed it without adding a reproducing test. I have fixed that now. There is a test which reproduces the panic (and fails on main), which passes after the changes! |
ajm188
approved these changes
Jun 21, 2022
GuptaManan100
added a commit
to planetscale/vitess
that referenced
this pull request
Jun 22, 2022
* test: reproduce the panic as a unit test Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: check ev is not nil before using its fields Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: increase timeout of LockShard and wait replicas in VTOrc default config Signed-off-by: Manan Gupta <manan@planetscale.com>
3 tasks
GuptaManan100
added a commit
that referenced
this pull request
Jun 22, 2022
* test: reproduce the panic as a unit test Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: check ev is not nil before using its fields Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: increase timeout of LockShard and wait replicas in VTOrc default config Signed-off-by: Manan Gupta <manan@planetscale.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A panic was seen in VTOrc with the following log -
On investigation it was found to occur because the
*events.Reparentfield returned was nil and the code does not check if the field is nil.This PR fixes this panic by checking if
evis nil before using its fields.This PR also increases the timeout of the default values of
LockShardTimeoutSecondsandWaitReplicasTimeoutSecondsto 30 seconds each.Related Issue(s)
Checklist
Deployment Notes