Skip to content
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

Assertion `!check_buffer || (vio_pending(net->vio) <= 1)' failed in net_clear() during disconnect with PS protocol #378

Open
sciascid opened this issue Dec 7, 2020 · 0 comments
Assignees

Comments

@sciascid
Copy link
Contributor

sciascid commented Dec 7, 2020

The assertion can be reproduced with the following test:

--source include/galera_cluster.inc

if (`SELECT $PS_PROTOCOL = 0`)
{
  --skip Test requires: ps-protocol enabled
}

--connection node_1
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY);

# Creates a prepared stmt
INSERT INTO t1 VALUES(1); 

START TRANSACTION;
# Notice that using --send here causes mysqltest
# to fallback to normal protocol
--send INSERT INTO t1 VALUES(2); 

--connection node_2
INSERT INTO t1 VALUES(2);
DROP TABLE t1;

The assertion appears in mysqltest client, when disconnecting and ongoing transaction at the end of the test. For assertion to trigger, there needs to be a prepared statement prior, and followed by a BF aborted transaction.

@sciascid sciascid self-assigned this Dec 7, 2020
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

No branches or pull requests

1 participant