[MDEV-24474] Error en LOAD DATA LOCAL INFILE con cliente en windows 10 Created: 2020-12-22  Updated: 2021-02-15  Resolved: 2021-02-15

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.5.8
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: ALEJANDRO GONZALEZ Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: need_feedback
Environment:

Servidor: centos7
Cliente: Windows 10


Attachments: File data_L1.dat    

 Description   

Archivo de prueba a importar con LOAD DATA LOCAL INFILE:

DOJMX000004200~DO000095~DO000091~5984.2~5984.2~5984.2~5984.2

############################################
Creo una base de datos de prueba y una tabla de prueba:

MariaDB [(none)]> create database prueba;
Query OK, 1 row affected (0.005 sec)

MariaDB [(none)]> use prueba;
Database changed
MariaDB [prueba]> CREATE TABLE `prueba2` (
-> `campo1` VARCHAR(50) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci',
-> `campo2` VARCHAR(50) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci',
-> `campo3` VARCHAR(50) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci',
-> `campo4` FLOAT NULL DEFAULT NULL,
-> `campo5` FLOAT NULL DEFAULT NULL,
-> `campo6` FLOAT NULL DEFAULT NULL,
-> `campo7` FLOAT NULL DEFAULT NULL
-> )
-> COLLATE='latin1_swedish_ci'
-> ENGINE=InnoDB
-> ;
Query OK, 0 rows affected (0.019 sec)

MariaDB [prueba]> select * from prueba2;
Empty set (0.038 sec)

############################################
Desde un cliente con windows 10 intento cargar el archivo local:

LOAD DATA LOCAL INFILE 'C:\\Alex
data_L1.dat' INTO TABLE prodsmsp2.prueba2 CHARACTER SET 'UTF8' FIELDS TERMINATED BY '~' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\n';

ERROR 2013 (HY000): Lost connection to MySQL server during query

############################################
No se genera registro en el log de errores de mariadb.
En el log general sólo aparece el query.
############################################

Sólo ocurre desde windows 10 al servidor en linux Centos 7.
También ocurre al usar el connector java desde windows 10 al servidor en linux Centos 7.
Se probó desde un cliente en linux con la misma versión y no se replica.
Se probó desde un cliente windows 10 a un servidor en windows 10 con la misma versión y no se replica.



 Comments   
Comment by Elena Stepanova [ 2021-01-12 ]

I can't reproduce it (between a Linux server and a Windows client, both 10.5, default configuration).

In your description, you are creating a table in one schema, but loading into another. While it can't itself be a cause of 2013 error, it shows an inconsistency in the use case. Please check all the steps.

If the problem persists, please paste or attach configuration files from the server and the client.

Generated at Thu Feb 08 09:30:16 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.