[MXS-1931] Debug assertion in is_large_query fails Created: 2018-06-18  Updated: 2018-06-19  Resolved: 2018-06-19

Status: Closed
Project: MariaDB MaxScale
Component/s: mariadbclient
Affects Version/s: 2.2.9
Fix Version/s: 2.2.10

Type: Bug Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None


 Description   

The following debug assertion in the is_large_query function fails in 2.2.

ss_dassert(MYSQL_GET_PAYLOAD_LEN(GWBUF_DATA(buf)) == buflen - MYSQL_HEADER_LEN);

The number of bytes in the buffer is larger than the packet size which means that more than one packet was routed.



 Comments   
Comment by markus makela [ 2018-06-18 ]

Without a debug build, this manifests itself as a hang.

I am not certain that this will always cause problems or that the end result will always be a hang; the bug can behave in a way that causes an unexpected response from the backend which could be silently ignored.

Generated at Thu Feb 08 04:10:27 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.