[MDEV-2450] LP:597742 - status_user.test fails in 5.3-based branches when ran with --ps-protocol Created: 2010-06-23 Updated: 2012-10-04 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
status_user.test fails in 5.3-based branches when one runs the test with --ps-protocol. |
| Comments |
| Comment by Sergei Petrunia [ 2010-06-23 ] |
|
Re: status_user.test fails in 5.3-based branches when ran with --ps-protocol main.status_user w2 [ fail ] CURRENT_TEST: main.status_user mysqltest: Result length mismatch |
| Comment by Sergei Petrunia [ 2010-06-23 ] |
|
Re: status_user.test fails in 5.3-based branches when ran with --ps-protocol |
| Comment by Sergei Petrunia [ 2010-06-24 ] |
|
Re: status_user.test fails in 5.3-based branches when ran with --ps-protocol cat > t/_a.test << EOF
create table t1 (a int, primary key (a), b int default 0) engine=myisam; /* Empty query */ drop table t1; select sleep(1);
set @@global.userstat=0; #
EOF The last query will produce different results depending on whether the testcase was run with --ps-protocol or not. |
| Comment by Sergei Petrunia [ 2010-06-24 ] |
|
Re: status_user.test fails in 5.3-based branches when ran with --ps-protocol Investigation reveals that ROWS_INSERTED gets incremented twice:
Breakpoint 12, dispatch_command (command=COM_STMT_EXECUTE, thd=0xb8a7300, packet=0xb9598d9 "\002", packet_length=9) at sql_parse.cc:991
Breakpoint 10, update_global_user_stats_with_user (thd=0xb8a7300, user_stats=0xb93f768, now=1277408205) at sql_connect.cc:948 Breakpoint 11, update_global_user_stats_with_user (thd=0xb8a7300, user_stats=0xb93f768, now=1277408205) at sql_connect.cc:954 ... Breakpoint 12, dispatch_command (command=COM_STMT_CLOSE, thd=0xb8a7300, packet=0xb9598d9 "\002", packet_length=4) at sql_parse.cc:991 Breakpoint 10, update_global_user_stats_with_user (thd=0xb8a7300, user_stats=0xb93f768, now=1277408262) at sql_connect.cc:948 (gdb) next Breakpoint 11, update_global_user_stats_with_user (thd=0xb8a7300, user_stats=0xb93f768, now=1277408262) at sql_connect.cc:954 |
| Comment by Sergei Petrunia [ 2010-06-24 ] |
|
Re: status_user.test fails in 5.3-based branches when ran with --ps-protocol Revision Id: sergii@pisem.net-20100316123835-rqwdtntbiaj70ui8 We need to merge from 5.2 to get this fix. |
| Comment by Sergei Petrunia [ 2010-06-27 ] |
|
Re: status_user.test fails in 5.3-based branches when ran with --ps-protocol |
| Comment by Rasmus Johansson (Inactive) [ 2010-06-27 ] |
|
Launchpad bug id: 597742 |