Bugs item #2771052, was opened at 2009-04-17 18:55
Message generated for change (Tracker Item Submitted) made by stmane
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2771052&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SQL/Core
Group: SQL "stable"
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Stefan Manegold (stmane)
Assigned to: Niels Nes (nielsnes)
Summary: M5/SQL: parallel bulk-load (copy info) incorrect

Initial Comment:
With a simple CSV file containing 100000000 rows, each holding just a single 
'1', I get the following when running a (default) 4-threaded mserver5 on my 
4-core machine:

$ mserver5 --dbinit='include sql;'
# MonetDB server v5.10.3, based on kernel v1.28.3
# Serving database 'demo', using 4 threads
# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically linked
# Copyright (c) 1993-July 2008 CWI.
# Copyright (c) August 2008-2009 MonetDB B.V., all rights reserved
# Visit http://monetdb.cwi.nl/ for further information
#warning: please don't forget to set your vault key!
#(see 
/ufs/manegold/_/scratch0/Monet/Testing/Stable/prefix.--enable-strict_--disable-optimize_--enable-debug_--enable-assert/etc/monetdb5.conf)
# Listening for connection requests on mapi:monetdb://127.0.0.1:50000/
# MonetDB/SQL module v2.28.3 loaded

$ mclient -lsql
sql>create table i0 (a integer);
0 tuples
sql>create table i1 (a integer);
0 tuples
sql>create table i2 (a integer);
0 tuples
sql>create table i3 (a integer);
0 tuples
sql>create table i4 (a integer);
0 tuples
sql>create table i5 (a integer);
0 tuples
sql>create table i6 (a integer);
0 tuples
sql>create table i7 (a integer);
0 tuples
sql>create table i8 (a integer);
0 tuples

$ mclient -lsql
sql>copy 1 records into i0 from '/tmp/1.csv';
Rows affected 1
sql>copy 10 records into i1 from '/tmp/1.csv';
Rows affected 10
sql>copy 100 records into i2 from '/tmp/1.csv';
Rows affected 100
sql>copy 1000 records into i3 from '/tmp/1.csv';
Rows affected 1000
sql>copy 10000 records into i4 from '/tmp/1.csv';
Rows affected 40000
sql>copy 100000 records into i5 from '/tmp/1.csv';
Rows affected 400000
sql>copy 1000000 records into i6 from '/tmp/1.csv';
Rows affected 4000000
sql>copy 10000000 records into i7 from '/tmp/1.csv';
Rows affected 40000000
sql>copy 100000000 records into i8 from '/tmp/1.csv';
Rows affected 100000000

(Mind the '4's where '1's are expected.)

The problem is analogously reproducible with `mserver5 --set gdk_nr_threads=3` 
& `mserver5 --set gdk_nr_threads=2`;
bulk-loading works fine with `mserver5 --set gdk_nr_threads=1`.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2771052&group_id=56967

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to