[MDEV-31600] ANALYZE in binary protocol, using read only cursor errors with undefined code Created: 2023-06-30  Updated: 2023-07-02

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.6.14, 10.11.4
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Daniel Black Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Attachments: File analyze.pcapng     File analyze_cursor.pcapng    

 Description   

processor_1          |     b = conn.Cursor(CURSOR.READONLY)
processor_1          |     b.execute('analyze format=json select 1')
processor_1          |   File "/usr/local/lib/python3.11/site-packages/mariadb/cursors.py", line 315, in execute
processor_1          |     self._execute_binary()
processor_1          | mariadb.OperationalError: Unknown or undefined error code

Expected - more known and defined error code (or execution).

server MariaDB-10.6.14



 Comments   
Comment by Georg Richter [ 2023-07-01 ]

Some observations:

  • Same problem occurs without format=json
  • Repeatable with Connector/C
  • looks like a malformed packet from server.

I will do some further investigations and then postpone this report (either CONC or MDEV)

Comment by Georg Richter [ 2023-07-01 ]

Attached 2 pcap files (using ANALYZE without format=json):

  • analyze.pcapng - Binary execution without cursor
  • analyze_cursor.pcapng - Binary execution with cursor

The server response for COM_STMT_EXECUTE is broken (field_count=1).

Moving to MDEV

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