-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
server: Fix compression protocol for larger packets | tidb-test=pr/2227 #47495
Conversation
Skipping CI for Draft Pull Request. |
Hi @dveeden. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
#!/bin/perl
use strict;
use DBI;
use v5.36.0;
$| = 1;
my @dsns = (
'DBI:mysql:database=test;port=4000;host=127.0.0.1;mysql_read_timeout=5',
'DBI:mysql:database=test;port=4000;host=127.0.0.1;mysql_read_timeout=5;mysql_compression=1'
);
foreach my $dsn (@dsns) {
say "Testing with DSN: " . $dsn;
my $dbh = DBI->connect($dsn, 'root', undef);
my $sth = $dbh->prepare("select repeat('a', ?)");
my $size = (2**24)-20;
while ($size < (2**24)+10) {
print "Trying " . $size;
$sth->execute($size) or die "FAIL: query execution failed\n";
while (my $ref = $sth->fetchrow_arrayref()) {
if (length($$ref[0]) == $size) {
print " OK\n";
} else {
print " FAIL: expected " . $size . " but got " . $$ref[0] . "\n";
}
$size++;
}
}
$sth->finish;
} With this PR:
Without this PR:
|
/check-issue-triage-complete |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #47495 +/- ##
================================================
+ Coverage 71.4979% 72.9540% +1.4561%
================================================
Files 1402 1425 +23
Lines 406163 414018 +7855
================================================
+ Hits 290398 302043 +11645
+ Misses 95955 93108 -2847
+ Partials 19810 18867 -943
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
- Can you add a unit test to prevent it from broken by others?
- As mentioned in Querying huge data with useCompress=true fails #47161 (comment), what if the result set is larger than 256MB?
Yes. That was why the PR was still in draft status.
That still needs to be fixed. |
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.
I don't see how the second problem in #47152 (comment) is solved: sometimes uncompressed sequence is affected by compressed sequence.
Here the sequence number 3 gets duplicated with MySQL, probably because in I'm not sure which one is best, but I also haven't seen any issues with this from a client standpoint. I had a quick look at the Connector/J code and there I didn't see packet numbers of the regular and compressed packets being synced. |
I've now done this in ee66779 |
/retest |
1 similar comment
/retest |
/test tiprow_fast_test |
@dveeden: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@dveeden: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: djshow832, lance6716 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
In response to a cherrypick label: new pull request created to branch |
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
What problem does this PR solve?
Issue Number: close #47152
All issues fixed by this PR:
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.