[MXS-1852] mysql_client_test test_bug17309863 failed Created: 2018-05-04 Updated: 2018-05-16 Resolved: 2018-05-16 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | readwritesplit |
| Affects Version/s: | 2.2 |
| Fix Version/s: | 2.2.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | xiangzhong | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
linux + make debug + mysql 5.6 |
||
| Description |
|
we add debug log in kill_func
there output:(6) (kill_func): dcb:0x1c25180 find client threadid:5, with backend threadid:0 i think there backend dcb proto->thread_id should be != 0. |
| Comments |
| Comment by markus makela [ 2018-05-04 ] | ||||||||||||||
|
I think this could happen if the backend DCB has not yet been connected. To confirm this, the state of the DCB can be checked. | ||||||||||||||
| Comment by xiangzhong [ 2018-05-04 ] | ||||||||||||||
|
i confirm the backend dcb have connected, i add debug log:
there printf dcb is equal kill_func't dcb and thread_id != 0. | ||||||||||||||
| Comment by xiangzhong [ 2018-05-07 ] | ||||||||||||||
|
sorry, this case is modified by us, because direct connect db is failed. diff like: rc= mysql_query(lmysql, "SELECT 'bug17309863'"); mysql_close(lmysql); | ||||||||||||||
| Comment by markus makela [ 2018-05-07 ] | ||||||||||||||
|
I believe the test fails due to the fact that it rapidly creates databases and uses them. The following log was generated with a four node master-slave cluster. It shows that the slaves have not yet replicated the database creation which causes an authentication failure:
With only one server, the test never fails. | ||||||||||||||
| Comment by xiangzhong [ 2018-05-08 ] | ||||||||||||||
|
we have confirmed: because the backend connect is async,for this case when recv kill query maybe the backend not connect now. | ||||||||||||||
| Comment by markus makela [ 2018-05-08 ] | ||||||||||||||
|
OK, in that case I think the DCB could just be closed. |