You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the introduction of #1263 which adds support for multiple rows affected and insert IDs being returned for multi-statement requests, there are some conditions that lead to a memory loitering issue (both must be true):
If the connection is reused
If the protocol path involved results in an OK Packet (e.g. a resultSetHeaderPacket)
Notably, the Query path in the driver implementation is affected by this second condition. Any extremely long running process that continually reuses a connection and uses the Query path (as opposed to the Exec path) will experience this issue.
Example code
for {
iferr:=conn.Ping(); err!=nil {
returnerr
}
time.Sleep(time.Second)
}
Error log
Not applicable.
Configuration
Driver version (or git SHA): 1.6
Go version: 1.17
Server version: MySQL 5.7
Server OS: N/A
The text was updated successfully, but these errors were encountered:
Issue description
After the introduction of #1263 which adds support for multiple rows affected and insert IDs being returned for multi-statement requests, there are some conditions that lead to a memory loitering issue (both must be true):
Notably, the Query path in the driver implementation is affected by this second condition. Any extremely long running process that continually reuses a connection and uses the Query path (as opposed to the Exec path) will experience this issue.
Example code
Error log
Not applicable.
Configuration
Driver version (or git SHA): 1.6
Go version: 1.17
Server version: MySQL 5.7
Server OS: N/A
The text was updated successfully, but these errors were encountered: