[MDEV-7569] Section name buffer in INI table is not enough Created: 2015-02-10  Updated: 2015-02-10  Resolved: 2015-02-10

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

Type: Bug Priority: Minor
Reporter: weijenchang Assignee: Olivier Bertrand
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

OS:Scientific Linux release 6.4 (Carbon)
Kernel : 2.6.32-358.el6.x86_64
gcc : 4.4.7
Memory space:24GB


Attachments: HTML File primary_info     Text File select_result.txt    

 Description   

Dear Sir,
I'm trying to load an INI table into Mariadb, but it seems connect engine didn't fully load my table. The data is broken by a certain line, and it didn't be loaded into the database after that line. I also tried to set seclen like your website said : option_list='seclen=4000'; but it's not helpful, would you please let me know how to solve this issue so that my INI table can be fully loaded ? Thanks a lot for your help.

Best Regards,
W.J. Chang



 Comments   
Comment by Jan Lindström (Inactive) [ 2015-02-10 ]

Hi,

Could you provide a more thorough description of the problem and if you have repeatable set of commands/test case or database that would help to start resolving the actual issue.

Comment by weijenchang [ 2015-02-10 ]

Thanks for your quick reply. I just attach two files, primary_info is the file which I'd to load into MariaDB, and there are 1720 sections. But I can just see 911 rows after I query the table. I also attach the end of the result of "select * from primary_info". Here is how I created my table: create table primary_info ( Hostname varchar(20) not null flag=1, MM_IP varchar(20) not null, Bay varchar(10) not null, Location varchar(20) not null, Purpose varchar(15), Annotation varchar(50)) engine=CONNECT table_type=INI file_name='/tmp/asgc_resource/primary_info/primary_info';
Thanks a lot.

Best Regards,
W.J. Chang

Comment by Olivier Bertrand [ 2015-02-10 ]

Actually the documentation is out of date and you have been mislead because of this.

The default section buffer size is not 2K but 8K, and the option name is not seclen but secsize. Specifying:

option_list='secsize=16K'

I was able to display the 1720 sections.

Generated at Thu Feb 08 07:20:36 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.