List:General Discussion« Previous MessageNext Message »
From:johnm Date:February 19 2001 5:01pm
Subject:SQL Exception java.sql.SQLException: General error: Got error -30996 from table handler
View as plain text  
>How-To-Repeat:
	On two or more client machines
	Note this will not happen using 'virtual clients', i.e. one machine running mucltiple
threads

	Open Connection
	Turn AutoCommit off 
	> db.setAutoCommit(false);

	loop through 10,000 queries, commiting after each one

	>bln_rs = st.execute(strQuery);
	>if(blnTransactions == true) db.commit();
		  
	Each record is ~100k

	i.e. 
	INSERT INTO hundred VALUES
(9957,981383709,123,-7.37785e+07,-8.82443e+08,-337838123.70,'2008-04-19','v9T4nuW6h3','HERKYrWcNI3IP2DRxsRS','m44kBokmN218JTw8OG53');

	Fix: By adding a significant delay between inserts the bug does not happen
	>for(int x=0;x<100000;x++) {
	>    if((x % 1000) == 0)
	>	System.out.print(".");
	>}
	

>Submitter-Id:	johnm@stripped
>Originator:	John Moschetto
>Organization:
 
>MySQL support: none 
>Synopsis:	
>Severity:	
>Priority:	
>Category:	mysql
>Class:		
>Release:	mysql-3.23.32 (Source distribution)

>Environment:
	
System: Linux joel 2.2.12-20 #1 Mon Sep 27 10:40:35 EDT 1999 i686 unknown
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
Compilation info: CC='gcc'  CFLAGS=''  CXX='c++'  CXXFLAGS=''  LDFLAGS=''
LIBC: 
lrwxrwxrwx   1 root     root           13 Apr 26  2000 /lib/libc.so.6 -> libc-2.1.2.so
-rwxr-xr-x   1 root     root      4118299 Sep 20  1999 /lib/libc-2.1.2.so
-rw-r--r--   1 root     root     20020054 Sep 20  1999 /usr/lib/libc.a
-rw-r--r--   1 root     root          178 Sep 20  1999 /usr/lib/libc.so
Configure command: ./configure  --prefix=/usr/mysqlbdb
Perl: This is perl, version 5.005_03 built for i386-linux
Thread
SQL Exception java.sql.SQLException: General error: Got error -30996 from table handlerjohnm19 Feb