[
https://issues.apache.org/jira/browse/CALCITE-1894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16618926#comment-16618926
]
zhen wang commented on CALCITE-1894:
------------------------------------
for the streaming example, it should not throw away the first line (which is
used to construct the schema as per my memory)
Thread.sleep is used to align the current thread with the background data
fetching thread. ( details can't be recalled)
the background thread periodically probes the csv file to detect whether there
are new writes into it since last time.
> CsvTest.testCsvStream failing often
> -----------------------------------
>
> Key: CALCITE-1894
> URL: https://issues.apache.org/jira/browse/CALCITE-1894
> Project: Calcite
> Issue Type: Bug
> Reporter: Rajeshbabu Chintaguntla
> Assignee: Julian Hyde
> Priority: Major
>
> CsvTest.testCsvStream is timing out and failing often.
> This is the build failed because of this test.
> https://travis-ci.org/apache/calcite/jobs/253794426
> {noformat}
> <<< FAILURE! - in org.apache.calcite.test.CsvTest
> testCsvStream(org.apache.calcite.test.CsvTest) Time elapsed: 10.044 sec <<<
> ERROR!
> org.junit.runners.model.TestTimedOutException: test timed out after 10000
> milliseconds
> at org.apache.calcite.test.CsvTest.testCsvStream(CsvTest.java:729)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)