-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
distsql: Unify endian for Chunk encode format #13349
Conversation
Signed-off-by: wshwsh12 <793703860@qq.com>
Signed-off-by: wshwsh12 <793703860@qq.com>
/build |
Codecov Report
@@ Coverage Diff @@
## master #13349 +/- ##
===========================================
Coverage 80.1863% 80.1863%
===========================================
Files 474 474
Lines 116753 116753
===========================================
Hits 93620 93620
Misses 15761 15761
Partials 7372 7372 |
/run-all-tests |
distsql/distsql.go
Outdated
@@ -169,5 +170,35 @@ func canUseChunkRPC(ctx sessionctx.Context) bool { | |||
if ctx.GetSessionVars().EnableStreaming { | |||
return false | |||
} | |||
if !supportedAlignment() { |
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.
We may check this when process starting and cache the result, instead of checking in each session.
distsql/distsql.go
Outdated
|
||
// SetSystemEndian sets the system endian for the DAGRequest. | ||
func SetSystemEndian(dagReq *tipb.DAGRequest) { | ||
dagReq.TidbSystemEndian = GetSystemEndian() |
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.
We may check this when process starting and cache the result, instead of checking in each session.
And PTAL at the CI failure. |
The CI fail is because tipb hasn't been merged to master and update. |
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
/run-all-tests |
What problem does this PR solve?
When using chunk encode format for response , maybe the endian is different in tidb and tikv, and tidb can't decode the data.
What is changed and how it works?
Unify endian for Chunk encode format.
Check List
Tests
Code changes
Side effects
Related changes
Release note