[
https://issues.jboss.org/browse/TEIID-5092?page=com.atlassian.jira.plugin...
]
Ramesh Reddy commented on TEIID-5092:
-------------------------------------
The exception simply exposing a bad data, I am not sure I follow your comment about
unsynchronized access, why that should matter if the data is wrong. I do believe format is
an immutable call. Can you explain pls?
Joining tables from S3 occasionaly fails with NumberFormatException
-------------------------------------------------------------------
Key: TEIID-5092
URL:
https://issues.jboss.org/browse/TEIID-5092
Project: Teiid
Issue Type: Bug
Components: Misc. Connectors
Affects Versions: 8.12.x-6.4
Reporter: Andrej Šmigala
Assignee: Steven Hawkins
Priority: Critical
Running any query that reads multiple tables from an Amazon S3 datasource sometimes fails
with the following exception:
{noformat}
[org.teiid.CONNECTOR] (Worker0_QueryProcessorQueue3373) Connector worker process failed
for atomic-request=ZwjBqkPjJdw2.386.4.689: java.lang.NumberFormatException: For input
string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
[rt.jar:1.8.0_131]
at java.lang.Long.parseLong(Long.java:601) [rt.jar:1.8.0_131]
at java.lang.Long.parseLong(Long.java:631) [rt.jar:1.8.0_131]
at java.text.DigitList.getLong(DigitList.java:195) [rt.jar:1.8.0_131]
at java.text.DecimalFormat.parse(DecimalFormat.java:2051) [rt.jar:1.8.0_131]
at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1869) [rt.jar:1.8.0_131]
at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1514) [rt.jar:1.8.0_131]
at java.text.DateFormat.parse(DateFormat.java:364) [rt.jar:1.8.0_131]
at
org.teiid.translator.amazon.s3.S3ProcedureExecution.next(S3ProcedureExecution.java:488)
[translator-amazon-s3-8.12.11.6_4-redhat-64-6.jar:8.12.11.6_4-redhat-64-6]
at
org.teiid.dqp.internal.datamgr.ConnectorWorkItem.handleBatch(ConnectorWorkItem.java:433)
at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.more(ConnectorWorkItem.java:236)
at sun.reflect.GeneratedMethodAccessor211.invoke(Unknown Source) [:1.8.0_131]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_131]
at org.teiid.dqp.internal.datamgr.ConnectorManager$1.invoke(ConnectorManager.java:211)
at com.sun.proxy.$Proxy79.more(Unknown Source)
at
org.teiid.dqp.internal.process.DataTierTupleSource.getResults(DataTierTupleSource.java:309)
at
org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:112)
at
org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:108)
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_131]
at org.teiid.dqp.internal.process.FutureWork.run(FutureWork.java:65)
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:280)
at
org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:119)
at
org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:210)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0_131]
at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_131]
{noformat}.
The actual input string reffered to in the stack trace occasionaly contains garbage
data.
This is caused by unsynchronized access to a static SimpleDateFormat field here:
https://github.com/teiid/teiid/blob/64-8.12.x/connectors/translator-amazo...
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)