| Bug #120227 | LOAD DATA LOCAL INFILE: missing EOF packet on IOException leaves server thread hanging | ||
|---|---|---|---|
| Submitted: | 7 Apr 15:05 | Modified: | 28 Jul 20:59 |
| Reporter: | robi su | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | Connector / J | Severity: | S3 (Non-critical) |
| Version: | 9.6.0 | OS: | Any |
| Assigned to: | Filipe Silva | CPU Architecture: | Any |
| Tags: | load-data, local-infile, protocol | ||
[7 Apr 15:05]
robi su
[13 Apr 23:15]
Filipe Silva
Thank you for your interest in MySQL Connector/J and for taking the time file this report. Verified as described.
[28 May 1:13]
MySQL Admin
Posted by developer: Bug status updated to 'Documenting'
[28 Jul 20:59]
Edward Gilmore
Posted by developer:
Added the following note to the MySQL Connector/J 26.7.0 release notes:
If LOAD DATA LOCAL INFILE failed while reading the local source
data, the client could exit without properly finishing the
upload exchange with the server. In that situation, the original
failure was reported to the application, but the server could
remain waiting for the end of the transfer, which could leave
the connection out of sync for the next command.
As of this release, the driver completes the cleanup path before returning the
error. When a read-related failure happens, the driver now sends
the end-of-file marker needed to finish the upload protocol and
clears the server response as best effort, while still returning
the original exception to the user. The handling was also
adjusted so failures while closing the local input stream do not
prevent that cleanup from happening.
