Changeset: 302f20d9db0a for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=302f20d9db0a Added Files: sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.SQL.bat sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.SQL.sh sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.stable.err sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.stable.out Modified Files: sql/jdbc/tests/Tests/All Branch: Apr2019 Log Message:
Invoke JDBC test program to reproduce the hang problem of a failed prepare due to mal error. It hangs in the Apr2019 release but not anymore in tip of Apr2019 or Nov2019 branch. diffs (124 lines): diff --git a/sql/jdbc/tests/Tests/All b/sql/jdbc/tests/Tests/All --- a/sql/jdbc/tests/Tests/All +++ b/sql/jdbc/tests/Tests/All @@ -43,3 +43,4 @@ HAVE_JDBCTESTS?Bug_PrepStmtSetObject_CLO HAVE_JDBCTESTS?Bug_Connect_as_voc_getMetaData_Failure_Bug_6388 HAVE_JDBCTESTS?Bug_PrepStmtSetString_6382 HAVE_JDBCTESTS?Bug_LargeQueries_6571_6693 +HAVE_JDBCTESTS?Bug_PrepStmt_With_Errors_Jira292 diff --git a/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.SQL.bat b/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.SQL.bat new file mode 100755 --- /dev/null +++ b/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.SQL.bat @@ -0,0 +1,1 @@ +@call "%TSTSRCDIR%\Test.SQL.bat" %* diff --git a/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.SQL.sh b/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.SQL.sh new file mode 100755 --- /dev/null +++ b/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.SQL.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +$TSTSRCDIR/Test.SQL.sh $* diff --git a/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.stable.err b/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.stable.err new file mode 100644 --- /dev/null +++ b/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.stable.err @@ -0,0 +1,39 @@ +stderr of test 'Bug_PrepStmt_With_Errors_Jira292` in directory 'sql/jdbc/tests` itself: + + +# 14:46:39 > +# 14:46:39 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=35788" "--set" "mapi_usock=/var/tmp/mtest-8623/.s.monetdb.35788" "--set" "monet_prompt=" "--forcemito" "--dbpath=/export/scratch2/dinther/INSTALL/var/MonetDB/mTests_sql_jdbc_tests" +# 14:46:39 > + +# builtin opt gdk_dbpath = /export/scratch2/dinther/INSTALL/var/monetdb5/dbfarm/demo +# builtin opt gdk_debug = 0 +# builtin opt gdk_vmtrim = no +# builtin opt monet_prompt = > +# builtin opt monet_daemon = no +# builtin opt mapi_port = 50000 +# builtin opt mapi_open = false +# builtin opt mapi_autosense = false +# builtin opt sql_optimizer = default_pipe +# builtin opt sql_debug = 0 +# cmdline opt gdk_nr_threads = 0 +# cmdline opt mapi_open = true +# cmdline opt mapi_port = 35788 +# cmdline opt mapi_usock = /var/tmp/mtest-8623/.s.monetdb.35788 +# cmdline opt monet_prompt = +# cmdline opt gdk_dbpath = /export/scratch2/dinther/INSTALL/var/MonetDB/mTests_sql_jdbc_tests +# cmdline opt gdk_debug = 536870922 + +# 14:46:39 > +# 14:46:39 > "./Bug_PrepStmtSetObject_CLOB_6349.SQL.sh" "Bug_PrepStmtSetObject_CLOB_6349" +# 14:46:39 > + + +# 14:46:39 > +# 14:46:39 > java Bug_PrepStmtSetObject_CLOB_6349 "jdbc:monetdb://toulouse:35788/mTests_sql_jdbc_tests?user=monetdb&password=monetdb" +# 14:46:39 > + + +# 14:46:40 > +# 14:46:40 > "Done." +# 14:46:40 > + diff --git a/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.stable.out b/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.stable.out new file mode 100644 --- /dev/null +++ b/sql/jdbc/tests/Tests/Bug_PrepStmt_With_Errors_Jira292.stable.out @@ -0,0 +1,53 @@ +stdout of test 'Bug_PrepStmt_With_Errors_Jira292` in directory 'sql/jdbc/tests` itself: + + +# 14:46:39 > +# 14:46:39 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=35788" "--set" "mapi_usock=/var/tmp/mtest-8623/.s.monetdb.35788" "--set" "monet_prompt=" "--forcemito" "--dbpath=/export/scratch2/dinther/INSTALL/var/MonetDB/mTests_sql_jdbc_tests" +# 14:46:39 > + +# MonetDB 5 server v11.27.2 +# This is an unreleased version +# Serving database 'mTests_sql_jdbc_tests', using 8 threads +# Compiled for x86_64-unknown-linux-gnu/64bit with 128bit integers +# Found 15.588 GiB available main-memory. +# Copyright (c) 1993-July 2008 CWI. +# Copyright (c) August 2008-2017 MonetDB B.V., all rights reserved +# Visit https://www.monetdb.org/ for further information +# Listening for connection requests on mapi:monetdb://toulouse.da.cwi.nl:35788/ +# Listening for UNIX domain connection requests on mapi:monetdb:///var/tmp/mtest-8623/.s.monetdb.35788 +# MonetDB/GIS module loaded +# MonetDB/SQL module loaded + +Ready. + +# 14:46:39 > +# 14:46:39 > "./Bug_PrepStmtSetObject_CLOB_6349.SQL.sh" "Bug_PrepStmtSetObject_CLOB_6349" +# 14:46:39 > + + +# 14:46:39 > +# 14:46:39 > java Bug_PrepStmtSetObject_CLOB_6349 "jdbc:monetdb://toulouse:35788/mTests_sql_jdbc_tests?user=monetdb&password=monetdb" +# 14:46:39 > + +0. true true +1. table created and inserted 1 row +2. before select query execution +2a. select query executed +2c. closed select query resultset +2d. normal end of select query +3. before creating a prepared select query +3a. prepared select query +3b. Prepared Query has 0 parameters. +3c. Prepared Query has 1 columns. Type of first is: varchar +3d. before executing the prepared select query +3e. prepared select query executed +3f. prepared Query ResultSet has 1 columns. Type of first is: varchar +3h. closed prepared select query resultset +3i. normal end of prepared select query +4. drop table +5. normal end of test + +# 19:43:34 > +# 19:43:34 > "Done." +# 19:43:34 > + _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list