Skip to content

Flaky test: SqlFirehoseFactoryTest.testWithoutCache #12675

@paul-rogers

Description

@paul-rogers

This run failed in SqlFirehoseFactoryTest.testWithoutCache. Oddly, the PR in question doesn't even change existing code: it adds new code which is off by itself for the moment.

Failure:

[INFO] Running org.apache.druid.segment.realtime.firehose.SqlFirehoseFactoryTest
[ERROR] Tests run: 5, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.46 s <<< FAILURE! - in org.apache.druid.segment.realtime.firehose.SqlFirehoseFactoryTest
[ERROR] org.apache.druid.segment.realtime.firehose.SqlFirehoseFactoryTest.testWithoutCache  Time elapsed: 0.59 s  <<< ERROR!
java.lang.RuntimeException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NullPointerException
	at org.apache.druid.segment.realtime.firehose.PrefetchSqlFirehoseFactory$2.next(PrefetchSqlFirehoseFactory.java:221)
	at org.apache.druid.segment.realtime.firehose.PrefetchSqlFirehoseFactory$2.next(PrefetchSqlFirehoseFactory.java:199)
	at org.apache.druid.segment.realtime.firehose.SqlFirehose.getNextLineIterator(SqlFirehose.java:84)
	at org.apache.druid.segment.realtime.firehose.SqlFirehose.hasMore(SqlFirehose.java:63)
	at org.apache.druid.segment.realtime.firehose.SqlFirehoseFactoryTest.testWithoutCache(SqlFirehoseFactoryTest.java:188)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	...
Caused by: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NullPointerException
	at org.apache.druid.data.input.impl.prefetch.Fetcher.checkFetchException(Fetcher.java:203)
	at org.apache.druid.data.input.impl.prefetch.Fetcher.next(Fetcher.java:174)
	at org.apache.druid.segment.realtime.firehose.PrefetchSqlFirehoseFactory$2.next(PrefetchSqlFirehoseFactory.java:216)
	... 35 more
Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException
	at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
	at org.apache.druid.data.input.impl.prefetch.Fetcher.checkFetchException(Fetcher.java:194)
	... 37 more
Caused by: java.lang.NullPointerException
	at org.apache.druid.segment.realtime.firehose.SqlFetcher.download(SqlFetcher.java:82)
	at org.apache.druid.data.input.impl.prefetch.Fetcher.fetch(Fetcher.java:134)
	at org.apache.druid.data.input.impl.prefetch.Fetcher.lambda$fetchIfNeeded$0(Fetcher.java:110)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)

The cleanup also failed:

[ERROR] org.apache.druid.segment.realtime.firehose.SqlFirehoseFactoryTest  Time elapsed: 0.59 s  <<< ERROR!
java.io.FileNotFoundException: File does not exist: /tmp/SqlFirehoseFactoryTest1530634838652263350testWithoutCache
	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1349)
	at org.apache.druid.segment.realtime.firehose.SqlFirehoseFactoryTest.teardown(SqlFirehoseFactoryTest.java:92)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions