[CONJ-469] Have a better Blob implementation Created: 2017-05-10 Updated: 2017-11-02 Resolved: 2017-11-02 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | None |
| Fix Version/s: | 2.2.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Diego Dupin | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Since they are immutable, current Blob implementation (MariaDbBlob) must be improved :
|
| Comments |
| Comment by Loïc Bardon [ 2017-09-27 ] |
|
Connect string option blobSendChunkSize from the original MySQL connector seems not to be supported by MariaDB Connector/J. |
| Comment by Diego Dupin [ 2017-09-27 ] |
|
Goal of max_allowed_packet is to set a limit to indicate that if this limit is reach, that is clearly abnormal. If this can occur, then max_allowed_packet has to be changed. Do use need an option that indicate the chunk size to send stream to server. I don't see why. And concerning using that "blobSendChunkSize" option to avoid max_allowed_packet limitation :
|
| Comment by Loïc Bardon [ 2017-09-29 ] |
|
Goal of blobSendChunkSize is to allow sending the blob in chunks rather than in one single packet, thus permitting to use blobs larger than max_allowed_packet. In Mysql Connector/J blobSendChunkSize cannot exceed max_allowed_packet (if set to larger it will be automatically corrected - see their official doc). If mariadb will not implement this option and automatically use whatever is appropriate to upload blobs in chunks, that's fine with me (easier to use). Thanks |
| Comment by Diego Dupin [ 2017-11-01 ] |
|
I've been trying to check how that can work with mysql driver, since for me it's not normal, and server disallow having LONG_DATA with length > max_allowed_packet in MariaDB 10.3, 10.2, 10.1, 10.0 and MySQL 5.7 (and that's normal, that's the role of having max_allowed_packet). >I tried storing a 782M file in a blob : update statement fails with "exceeded max_allowed_packet" error despite configuring it to 1G. |
| Comment by Diego Dupin [ 2017-11-02 ] |
|
I'm closing this task because the initial goal was implemented, but if you still face issue with max_allowed_packet, feel free to create a dedicated task. |