Skip to content

add recover in WatchSrvVSchema and GetSrvKeyspaceNames#6051

Merged
sougou merged 1 commit intovitessio:masterfrom
xhh1989:master
Apr 12, 2020
Merged

add recover in WatchSrvVSchema and GetSrvKeyspaceNames#6051
sougou merged 1 commit intovitessio:masterfrom
xhh1989:master

Conversation

@xhh1989
Copy link
Copy Markdown
Contributor

@xhh1989 xhh1989 commented Apr 11, 2020

The process of watch vschema adds Recover process. Because the watch is a little complicated and there will be callback . If the go routine panic caused by a invalid vschema data or other problems, then all vtgates may receive the same vschema and all vtgate will panic at the same time, which will be a disaster.

Signed-off-by: xuhaihua <xuhaihua@jd.com>
@xhh1989 xhh1989 requested a review from sougou as a code owner April 11, 2020 03:01
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