Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
10.2.13
Description
Connectors assume that connection ID(often referred to as thread_id in the source) is 32bit , because this is what server sends them in the first packet. However, server handles connection IDs as 64bit integers, which means we overflow can happen, and connection ID sent to client is no longer valid,
MySQL happens to have fixed this bug in 5.7 with https://dev.mysql.com/worklog/task/?id=7293.
I believe we can think of a better scalable allocation algorithm not involving any kinds of hashes.
Attachments
Issue Links
- is caused by
-
MDEV-35706 Shrink my_thread_id to uint32_t
- Open
- relates to
-
MDEV-15086 Return the full 64 bits of thread ID in handshake packet
- Closed