Bug #21515 | socket write error with longblob > 16Mb | ||
---|---|---|---|
Submitted: | 8 Aug 2006 17:30 | Modified: | 19 Dec 2007 14:30 |
Reporter: | Andrey Grebnev | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 3.1.12 | OS: | Windows (WIndows XPsp2) |
Assigned to: | Mark Matthews | CPU Architecture: | Any |
Tags: | 16Mb, longblob, socket write error |
[8 Aug 2006 17:30]
Andrey Grebnev
[4 Sep 2006 11:25]
Tonci Grgin
Hi Andrey, thanks for your problem report. I was unable to repeat it with our standard BLOB test and following settings: - MySQL server 5.0.23-log on WinXP Pro SP2 - JRE 1.5.07 - Latest repo snapshot of connector/J - I don't have hibernate so it's not used in test C:\mysql507\bin>mysql -uroot test Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 5.0.23-log ... mysql> show variables like "%char%"; +--------------------------+-----------------------------+ | Variable_name | Value | +--------------------------+-----------------------------+ | character_set_client | utf8 | | character_set_connection | utf8 | | character_set_database | utf8 | | character_set_filesystem | binary | | character_set_results | utf8 | | character_set_server | utf8 | | character_set_system | utf8 | | character_sets_dir | C:\mysql507\share\charsets\ | +--------------------------+-----------------------------+ 8 rows in set (0.00 sec) mysql> show variables like "max_all%"; +--------------------+-----------+ | Variable_name | Value | +--------------------+-----------+ | max_allowed_packet | 104856576 | +--------------------+-----------+ 1 row in set (0.00 sec) mysql> select @@key_buffer_size; +-------------------+ | @@key_buffer_size | +-------------------+ | 16777216 | +-------------------+ 1 row in set (0.33 sec) Connect URL: //localhost:3306/test?user=root&password=&characterEncoding=utf-8&&useUnicode=true File used for testing is 17MB in size. Other meanings of SQL state reported: SQLSTATE: 08S01 (ER_NET_PACKETS_OUT_OF_ORDER) Message: Got packets out of order This I get using enablePacketDebug=true option and will investigate more. I think you're trying to use utf-8 on non unicode server and/or database and/or table. Can you please post output from show variables like "%char%"; command at the time of error?
[4 Sep 2006 12:06]
Andrey Grebnev
Here it is mysql> show variables like "max_all%"; +--------------------+-----------+ | Variable_name | Value | +--------------------+-----------+ | max_allowed_packet | 104856576 | +--------------------+-----------+ 1 row in set (0.00 sec) mysql> select @@key_buffer_size; +-------------------+ | @@key_buffer_size | +-------------------+ | 33554432 | +-------------------+ 1 row in set (0.00 sec) mysql> show variables like "%char%"; +--------------------------+----------------------------------------------+ | Variable_name | Value | +--------------------------+----------------------------------------------+ | character_set_client | utf8 | | character_set_connection | utf8 | | character_set_database | utf8 | | character_set_results | utf8 | | character_set_server | utf8 | | character_set_system | utf8 | | character_sets_dir | D:\ProgramFiles\mysql-5.0.15\share\charsets/ | +--------------------------+----------------------------------------------+ 7 rows in set (0.00 sec)
[4 Sep 2006 13:59]
Tonci Grgin
Andrey, great. Now can you tell me if the error persists if you remove packet debug? Also, can you reproduce the error not using hibernate?
[4 Sep 2006 17:19]
Andrey Grebnev
Yes, the bug is both with and wihtout packet debug. I have just created simplest test with such big longblog. It works fine. I think the problem is under the combination of circumstances. If you have a time you can try to setup my application and debug mysql server. Maybe it can allow you to find out the reason of unexpected socket termination.
[4 Sep 2006 17:23]
Tonci Grgin
Andrey, if you are able to reproduce unwanted crash without hibernate and debugpacket, please post your entire project so I can take a look at it.
[5 Sep 2006 13:55]
Andrey Grebnev
Tonci, I hope you have noticed that I have already posted the comment in hide mode.
[7 Sep 2006 5:37]
Tonci Grgin
Andrey, indeed I did. Since I can't repeat exact problem but do have errors I can't explain I'll ask for consult.
[19 Dec 2007 14:30]
Mark Matthews
We're not able to repeat this behavior with any recent C/J release. If you still see this problem after upgrading to C/J 5.1, feel free to re-open this report.