-
Notifications
You must be signed in to change notification settings - Fork 197
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
diff: increase connection limit according to number of shard tables #412
Conversation
pkg/diff/diff.go
Outdated
if err := sourceRows[i].Close(); err != nil { | ||
return nil, err | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 what to do with the defer rows.Close()
in line 574 then
/run-all-tests |
changed the behaviour and PR description. Happy Chinese New Year |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What problem does this PR solve?
close #411
What is changed and how it works?
one chunk need accessing every shard tables in one upstream, and there are
CheckThreadCount
simultaneously processing chunks. Adjust connection limit to fix the worst case which needsCheckThreadCount
* number of shard tables connections.Check List
Tests
Code changes
Side effects
Related changes