Bug 1231769

Summary: Solr translator - batched update with more than one query gets stack
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Juraj Duráni <jdurani>
Component: TeiidAssignee: Van Halbert <vhalbert>
Status: CLOSED CURRENTRELEASE QA Contact: Juraj Duráni <jdurani>
Severity: high Docs Contact:
Priority: high    
Version: 6.1.0CC: atangrin, dlesage, vhalbert
Target Milestone: ER1   
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
If a Solr translator PreparedStatement.executeBatch() has more than one query the user will encounter an error.
Story Points: ---
Clone Of: Environment:
Version 6.1.2
Last Closed: 2016-08-24 11:38:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Server log none

Description Juraj Duráni 2015-06-15 11:38:21 UTC
Created attachment 1038926 [details]
Server log

Describe the issue: 
PreparedStatement.executeBatch() with more than one query gets stack. For more details see server.log.
However batch of size 1 and Statement.executeBatch() run without problems.
The issue is not present in 6.1.1 version.





[1] - OK
[2] - OK
[3] - issue

[1]
Statement s = con.createStatement();
s.addBatch("INSERT INTO BQT1.SmallA (IntKey,StringKey) VALUES(61,61)");
s.addBatch("INSERT INTO BQT1.SmallA (IntKey,StringKey) VALUES(62,62)");
s.addBatch("INSERT INTO BQT1.SmallA (IntKey,StringKey) VALUES(63,63)");
s.addBatch("INSERT INTO BQT1.SmallA (IntKey,StringKey) VALUES(64,64)");
int[] updCount = s.executeBatch();

[2]
PreparedStatement s = con.prepareStatement("INSERT INTO BQT1.SmallA (IntKey,StringKey) VALUES(?,?)");
s.setInt(1, 61);
s.setString(2, "61");
s.addBatch();
int[] updCount = s.executeBatch();

[3]
PreparedStatement s = con.prepareStatement("INSERT INTO BQT1.SmallA (IntKey,StringKey) VALUES(?,?)");
s.setInt(1, 61);
s.setString(2, "61");
s.addBatch();
s.setInt(1, 62);
s.setString(2, "62");
s.addBatch();
int[] updCount = s.executeBatch();

Comment 1 JBoss JIRA Server 2015-06-15 12:55:15 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-3528 to Resolved

Comment 2 JBoss JIRA Server 2016-01-26 18:00:55 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-3528 to Closed

Comment 3 Juraj Duráni 2016-06-15 13:29:30 UTC
Verified.