Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A NPE when starting product tests #10366

Closed
ksobolew opened this issue Dec 21, 2021 · 4 comments · Fixed by #10516
Closed

A NPE when starting product tests #10366

ksobolew opened this issue Dec 21, 2021 · 4 comments · Fixed by #10516
Labels
bug Something isn't working test

Comments

@ksobolew
Copy link
Contributor

2021-12-21T10:59:08.839+0100	INFO	environment-listener-0	io.trino.tests.product.launcher.env.StatisticsFetcher	Started listening for container hadoop-master statistics stream...
2021-12-21T10:59:08.859+0100	WARN	docker-java-stream--385536058	io.trino.tests.product.launcher.env.StatisticsFetcher	Caught exception while processing statistics
java.lang.NullPointerException: Cannot invoke "java.lang.Long.longValue()" because the return value of "com.github.dockerjava.api.model.MemoryStatsConfig.getMaxUsage()" is null
	at io.trino.tests.product.launcher.env.StatisticsFetcher.toStats(StatisticsFetcher.java:109)
	at io.trino.tests.product.launcher.env.StatisticsFetcher$StatisticsCallback.lambda$onNext$0(StatisticsFetcher.java:130)
	at java.base/java.util.concurrent.atomic.AtomicReference.getAndUpdate(AtomicReference.java:188)
	at io.trino.tests.product.launcher.env.StatisticsFetcher$StatisticsCallback.onNext(StatisticsFetcher.java:130)
	at io.trino.tests.product.launcher.env.StatisticsFetcher$StatisticsCallback.onNext(StatisticsFetcher.java:121)
	at org.testcontainers.shaded.com.github.dockerjava.core.exec.AbstrAsyncDockerCmdExec$1.onNext(AbstrAsyncDockerCmdExec.java:41)
	at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder$JsonSink.accept(DefaultInvocationBuilder.java:315)
	at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder$JsonSink.accept(DefaultInvocationBuilder.java:298)
	at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder.lambda$executeAndStream$1(DefaultInvocationBuilder.java:275)
	at java.base/java.lang.Thread.run(Thread.java:833)


2021-12-21T10:59:08.860+0100	INFO	docker-java-stream--385536058	io.trino.tests.product.launcher.env.StatisticsFetcher	Stopped listening for container hadoop-master stats

The PTs seem to work fine, so it's not fatal, but something is clearly broken.

@ksobolew ksobolew added bug Something isn't working test labels Dec 21, 2021
@nineinchnick
Copy link
Member

Can you add more details about your environment, like Docker version, OS, etc?

@ksobolew
Copy link
Contributor Author

Sure, it's plain Docker Desktop on Mac (4.3.1 (72247), Engine: 20.10.11), Zulu Java 17

@findepi
Copy link
Member

findepi commented Dec 21, 2021

memoryStats fields are nullable. and my IDE indicates a warning here

cc @wendigo

@findepi
Copy link
Member

findepi commented Jan 10, 2022

2022-01-10T11:09:09.796+0100	WARN	docker-java-stream--986236188	io.trino.tests.product.launcher.env.StatisticsFetcher	Caught exception while processing statistics
java.lang.NullPointerException
	at io.trino.tests.product.launcher.env.StatisticsFetcher.toStats(StatisticsFetcher.java:109)
	at io.trino.tests.product.launcher.env.StatisticsFetcher$StatisticsCallback.lambda$onNext$0(StatisticsFetcher.java:130)
	at java.base/java.util.concurrent.atomic.AtomicReference.getAndUpdate(AtomicReference.java:187)
	at io.trino.tests.product.launcher.env.StatisticsFetcher$StatisticsCallback.onNext(StatisticsFetcher.java:130)
	at io.trino.tests.product.launcher.env.StatisticsFetcher$StatisticsCallback.onNext(StatisticsFetcher.java:121)
	at org.testcontainers.shaded.com.github.dockerjava.core.exec.AbstrAsyncDockerCmdExec$1.onNext(AbstrAsyncDockerCmdExec.java:41)
	at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder$JsonSink.accept(DefaultInvocationBuilder.java:315)
	at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder$JsonSink.accept(DefaultInvocationBuilder.java:298)
	at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder.lambda$executeAndStream$1(DefaultInvocationBuilder.java:275)
	at java.base/java.lang.Thread.run(Thread.java:829)

cc @wendigo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working test
Development

Successfully merging a pull request may close this issue.

3 participants