[MCOL-1245] getting A fatal error in bulkinsert mariadb columnstore java api Created: 2018-03-06 Updated: 2023-10-26 Resolved: 2018-03-23 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.1.3 |
| Fix Version/s: | 1.1.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Paresh B | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Mariadb-Columnstore | ||
| Environment: |
OS:Red Hat Enterprise Linux Server release 7.4 (Maipo) |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Sprint: | 2018-06 | ||||||||
| Description |
|
I am trying to use MariaDB ColumnStore Bulk Write SDK in Java to bulk insert 10 rows in a table with 50 columns(data type int) but it never finished had to kill the process in 10 -15 tried couple times but same results and now I am getting following error. this is the code sample from their doc https://mariadb.com/kb/en/library/columnstore-bulk-write-sdk/#rhel-centos-7 import com.mariadb.columnstore.api.*; public class MCSAPITest { public static void main(String[] args) { System.out.println("Writing row: " + i); } A fatal error has been detected by the Java Runtime Environment:
|
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2018-03-07 ] | |
|
Hi, In your ticket description it states you are running 1.0.13. Is this the case? The connectors are not compatible with this version, they require 1.1.x (1.1.3 recommended). | |
| Comment by Paresh B [ 2018-03-07 ] | |
|
Sorry that was typo. This is 1.1.3. This is the rpm used mariadb-columnstore-api-1.1.3-1-x86_64-centos7.rpm | |
| Comment by Andrew Hutchings (Inactive) [ 2018-03-07 ] | |
|
And the MariaDB server is definitely 1.1.3 too? | |
| Comment by Paresh B [ 2018-03-07 ] | |
|
Yes | |
| Comment by Jens Röwekamp (Inactive) [ 2018-03-07 ] | |
|
Compiled and tested above code on Ubuntu 16.04 with CS 1.1.3-1 and Bulk API 1.1.3, and CentOS 7 with CS 1.1.3-1 and 1.1.3-2, and Bulk API 1.1.3. Compilation, execution and ingestion successful without any errors. Without more information I won't be able to reproduce the error and help. Could you provide me with the java file you tried to execute, a core dump of ColumnStore during execution, information about the java compiler you used, and a core dump of the java error produced? | |
| Comment by David Thompson (Inactive) [ 2018-03-09 ] | |
|
i'd also double check some basics, if you are running the sample on a non columnstore node server, make sure that you have copied the right ColumnStore.xml locally to /usr/local/mariadb/columnstore/etc and that server can reach the columnstore pm nodes. | |
| Comment by Paresh B [ 2018-03-09 ] | |
|
Yes I have copied ColumnStore.xml locally to /usr/local/mariadb/columnstore/etc and server can rach pm nodes, In fact it works sometime, here are some test results. I have enabled to core dump at maria but there is no core dump created. I do have java core dump though, but its pretty large how do I upload it here? sr # Rows Columns Total duration for bulk insert (Sec) | |
| Comment by Jens Röwekamp (Inactive) [ 2018-03-09 ] | |
|
Could you send the files via ftp to ftp://ftp.mariadb.com/uploads ? The directory is write only so you won't be able to see the files once uploaded. | |
| Comment by Paresh B [ 2018-03-09 ] | |
|
uploaded. | |
| Comment by Paresh B [ 2018-03-09 ] | |
|
sometimes I am getting this error if this helps. | |
| Comment by Jens Röwekamp (Inactive) [ 2018-03-16 ] | |
|
Short status update: Can reproduce the error on a setup with a remote CS server and the Java code executed from a different machine. In this case CS was running on CentOS 7 and the Bulk Write API was running on Debian 9. Can't reproduce on a single node installation where CS and the Bulk Write API are executed on the same machine. Increased the number of rows to 50 and number of columns to 500. Will investigate further. | |
| Comment by Jens Röwekamp (Inactive) [ 2018-03-16 ] | |
|
Is a bug in the C++ API. Transferred the example to Python and C++ (attached) MCOL-1245.zip Will move ticket to LinuxJedi, as he has more C++ expertise than I have. | |
| Comment by Andrew Hutchings (Inactive) [ 2018-03-19 ] | |
|
The decompression buffer has a double free problem when it has to be used more than once. The key to triggering it is a remote connection with lots of columns as it causes the HWM and system catalog packets to be large enough to both trigger compression. | |
| Comment by Andrew Hutchings (Inactive) [ 2018-03-19 ] | |
|
Patch fixes the double-free problem. For QA:
4. mcsmysql test < t1.sql Before the fix this will crash towards the end. | |
| Comment by Daniel Lee (Inactive) [ 2018-03-23 ] | |
|
Build verified: 1.1.4-1 source /root/columnstore/mariadb-columnstore-server Merge pull request #104 from mariadb-corporation/davidhilldallas-patch-3 update version /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #427 from mariadb-corporation/ Mcol 1225 - fix mysql/lib library path [root@localhost mariadb-columnstore-api]# git show Merge pull request #60 from mariadb-corporation/ Platform: centos 7 API 1.1.4-1 worked on both Columnstore 1.1.3-1 and 1.1.4-1. | |
| Comment by Christoffer [ 2018-06-12 ] | |
|
Although the ticket is in closed state and clearly states the fix is included in 1.1.4, I would just like to confirm that it indeed works, tested through Python. Thank you for the fix |