ColumnStore API : python program using columnstore api crashing when trying to run 2 instances

29 views
Skip to first unread message

Atul Gore

unread,
Jan 3, 2018, 4:27:33 AM1/3/18
to MariaDB ColumnStore
Hi, 
I am trying to use the python binding of the maridb-columnstore-api to bulk load some data.
I have a 2 PM/UM system.

I am trying to load data into multiple tables. 
The problem i see is following: 

I run one instance of my python program to load data into tableA. 
I run another instance of my python program to load data into tableB. 

The second instance crashes with the error:

terminate called after throwing an instance of 'mcsapi::ColumnStoreNetworkError'
  what():  Compressed data corruption
Aborted (core dumped)


However, no core file seems to be generated. I looked up the source code and the error seems to be coming from src/util_network.cpp in snappy uncompress method. 
I am running this on Ubuntu 16.04 system.

I checked all the logs in /var/log/mariadb/columnstore but can't find anything that might point to the issue. Is there any other place that i can look? 

I assume the columnstore system should allow 2 parallel loads to 2 different tables of the same database using 2 different processes simultaneously. 

Any pointers to how to get past this errors would be of great help as I am having to do a single process batched. 

Kindly let me know if any more information is required for getting to the root cause of this issue.

Thanks,
./a

Andrew Hutchings

unread,
Jan 3, 2018, 5:49:46 AM1/3/18
to mariadb-c...@googlegroups.com
Hi Atul,

There were several bugs in the network packet handling and compression
that are fixed in the develop-1.1 branch (which will make up the 1.1.3
release). I think it is highly likely you are hitting one of those.

If you are able to compile it yourself please try using this branch:

https://github.com/mariadb-corporation/mariadb-columnstore-api/tree/develop-1.1

If you are still getting the crashes after that let me know and I'll
show you how to get some debugging information.

Kind Regards
Andrew
> --
> You received this message because you are subscribed to the Google
> Groups "MariaDB ColumnStore" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to mariadb-columns...@googlegroups.com
> <mailto:mariadb-columns...@googlegroups.com>.
> To post to this group, send email to
> mariadb-c...@googlegroups.com
> <mailto:mariadb-c...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mariadb-columnstore/c1ed5891-ee6b-4fdc-9035-4e073da3bf03%40googlegroups.com
> <https://groups.google.com/d/msgid/mariadb-columnstore/c1ed5891-ee6b-4fdc-9035-4e073da3bf03%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
Andrew Hutchings (LinuxJedi)
Lead Engineer, MariaDB ColumnStore

Atul Gore

unread,
Jan 3, 2018, 6:13:32 AM1/3/18
to MariaDB ColumnStore
Thanks for reverting so quickly Andrew! 

I tried the build from develop-1.1 branch
Now its past that error and gives the following error: 

terminate called after throwing an instance of 'mcsapi::ColumnStoreServerError'
  what():  Error committing BRM

Let me know what information I can provide to help you debug this further.

Thanks,
./a

Andrew Hutchings

unread,
Jan 3, 2018, 7:00:47 AM1/3/18
to mariadb-c...@googlegroups.com
Hi Atul,

Excellent! Something new! :)

OK, if you could add the following flag when running cmake:

-DCMAKE_BUILD_TYPE=Debug

Then recompile it, upon executing there will be a huge amount of
debugging data spit out onto STDERR. This will basically state what
decisions were made and all the packet data.

If you could capture this and send this to me directly (since this will
likely have private information in it) I can take a look.

In addition can you please send me /var/log/mariadb/columnstore/err.log
for all your PM nodes that might also have some useful information.

Kind Regards
Andrew
> > an email to mariadb-columns...@googlegroups.com
> <javascript:>
> > <mailto:mariadb-columns...@googlegroups.com
> <javascript:>>.
> > To post to this group, send email to
> > mariadb-c...@googlegroups.com <javascript:>
> > <mailto:mariadb-c...@googlegroups.com <javascript:>>.
> <https://groups.google.com/d/msgid/mariadb-columnstore/c1ed5891-ee6b-4fdc-9035-4e073da3bf03%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/optout>.
>
> --
> Andrew Hutchings (LinuxJedi)
> Lead Engineer, MariaDB ColumnStore
>
> --
> You received this message because you are subscribed to the Google
> Groups "MariaDB ColumnStore" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to mariadb-columns...@googlegroups.com
> <mailto:mariadb-columns...@googlegroups.com>.
> To post to this group, send email to
> mariadb-c...@googlegroups.com
> <mailto:mariadb-c...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mariadb-columnstore/deab972f-ecc5-4b12-808d-03265480bcde%40googlegroups.com
> <https://groups.google.com/d/msgid/mariadb-columnstore/deab972f-ecc5-4b12-808d-03265480bcde%40googlegroups.com?utm_medium=email&utm_source=footer>.

Andrew Hutchings

unread,
Jan 8, 2018, 9:50:59 AM1/8/18
to mariadb-c...@googlegroups.com
For those in the list, debugging information was supplied offline and it
helped to find:

https://jira.mariadb.org/browse/MCOL-1147

The fix for this will be in the 1.1.3 release.

Kind Regards
Andrew

Atul Gore

unread,
Jan 9, 2018, 12:11:19 AM1/9/18
to MariaDB ColumnStore
Thanks Andrew and Jens. I just took the update and the parallel load is progressing just fine. 

Is there a date on the 1.1.3 release yet, so that I can consume the binaries in production?

Thanks,
./a 
>>      > an email to mariadb-columnstore+unsub...@googlegroups.com
>>     <javascript:>
>>      > <mailto:mariadb-columnstore+unsub...@googlegroups.com
>>     <javascript:>>.
>>      > To post to this group, send email to
>>      > mariadb-c...@googlegroups.com <javascript:>
>>      > <mailto:mariadb-c...@googlegroups.com <javascript:>>.
>>      > To view this discussion on the web visit
>>      >
>>    
>> https://groups.google.com/d/msgid/mariadb-columnstore/c1ed5891-ee6b-4fdc-9035-4e073da3bf03%40googlegroups.com
>>
>>    
>> <https://groups.google.com/d/msgid/mariadb-columnstore/c1ed5891-ee6b-4fdc-9035-4e073da3bf03%40googlegroups.com>
>>
>>
>>      >
>>    
>> <https://groups.google.com/d/msgid/mariadb-columnstore/c1ed5891-ee6b-4fdc-9035-4e073da3bf03%40googlegroups.com?utm_medium=email&utm_source=footer
>>
>>    
>> <https://groups.google.com/d/msgid/mariadb-columnstore/c1ed5891-ee6b-4fdc-9035-4e073da3bf03%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>>
>>
>>      > For more options, visit https://groups.google.com/d/optout
>>     <https://groups.google.com/d/optout>.
>>
>>     --     Andrew Hutchings (LinuxJedi)
>>     Lead Engineer, MariaDB ColumnStore
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "MariaDB ColumnStore" group.
>> To unsubscribe from this group and stop receiving emails from it, send

Andrew Hutchings

unread,
Jan 10, 2018, 3:16:17 AM1/10/18
to mariadb-c...@googlegroups.com
Hi Atul,

Unfortunately I cannot give you a release date at the moment. But it
will be soon. We are trying to wrap up the last tickets for it now.

Kind Regards
Andrew
> mariadb-columns...@googlegroups.com <javascript:>
> >>     <javascript:>
> >>      > <mailto:mariadb-columns...@googlegroups.com
> <javascript:>
> >>     <javascript:>>.
> >>      > To post to this group, send email to
> >>      > mariadb-c...@googlegroups.com <javascript:>
> >>      > <mailto:mariadb-c...@googlegroups.com <javascript:>>.
> >>      > To view this discussion on the web visit
> >>      >
> >>
> >>
> https://groups.google.com/d/msgid/mariadb-columnstore/c1ed5891-ee6b-4fdc-9035-4e073da3bf03%40googlegroups.com
> <https://groups.google.com/d/msgid/mariadb-columnstore/c1ed5891-ee6b-4fdc-9035-4e073da3bf03%40googlegroups.com>
>
> >>
> >>
> >>
> <https://groups.google.com/d/msgid/mariadb-columnstore/c1ed5891-ee6b-4fdc-9035-4e073da3bf03%40googlegroups.com
> <https://groups.google.com/d/msgid/mariadb-columnstore/c1ed5891-ee6b-4fdc-9035-4e073da3bf03%40googlegroups.com>>
>
> >>
> >>
> >>      >
> >>
> >>
> <https://groups.google.com/d/msgid/mariadb-columnstore/c1ed5891-ee6b-4fdc-9035-4e073da3bf03%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/mariadb-columnstore/c1ed5891-ee6b-4fdc-9035-4e073da3bf03%40googlegroups.com?utm_medium=email&utm_source=footer>
>
> >>
> >>
> >>
> <https://groups.google.com/d/msgid/mariadb-columnstore/c1ed5891-ee6b-4fdc-9035-4e073da3bf03%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/mariadb-columnstore/c1ed5891-ee6b-4fdc-9035-4e073da3bf03%40googlegroups.com?utm_medium=email&utm_source=footer>>>.
>
> >>
> >>
> >>      > For more options, visit
> https://groups.google.com/d/optout <https://groups.google.com/d/optout>
> >>     <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>>.
> >>
> >>     --     Andrew Hutchings (LinuxJedi)
> >>     Lead Engineer, MariaDB ColumnStore
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "MariaDB ColumnStore" group.
> >> To unsubscribe from this group and stop receiving emails from
> it, send
> >> an email to mariadb-columns...@googlegroups.com
> <javascript:>
> >> <mailto:mariadb-columns...@googlegroups.com
> <javascript:>>.
> >> To post to this group, send email to
> >> mariadb-c...@googlegroups.com <javascript:>
> >> <mailto:mariadb-c...@googlegroups.com <javascript:>>.
> >> To view this discussion on the web visit
> >>
> https://groups.google.com/d/msgid/mariadb-columnstore/deab972f-ecc5-4b12-808d-03265480bcde%40googlegroups.com
> <https://groups.google.com/d/msgid/mariadb-columnstore/deab972f-ecc5-4b12-808d-03265480bcde%40googlegroups.com>
>
> >>
> <https://groups.google.com/d/msgid/mariadb-columnstore/deab972f-ecc5-4b12-808d-03265480bcde%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/mariadb-columnstore/deab972f-ecc5-4b12-808d-03265480bcde%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> >>
> >> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
> >
>
> --
> Andrew Hutchings (LinuxJedi)
> Lead Engineer, MariaDB ColumnStore
>
> --
> You received this message because you are subscribed to the Google
> Groups "MariaDB ColumnStore" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to mariadb-columns...@googlegroups.com
> <mailto:mariadb-columns...@googlegroups.com>.
> To post to this group, send email to
> mariadb-c...@googlegroups.com
> <mailto:mariadb-c...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mariadb-columnstore/2b741afd-80cd-4220-85d4-6bcab5128bcb%40googlegroups.com
> <https://groups.google.com/d/msgid/mariadb-columnstore/2b741afd-80cd-4220-85d4-6bcab5128bcb%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages