Details
-
Sub-task
-
Status: Resolved
-
P2
-
Resolution: Fixed
-
None
Description
Gradle task :runners:direct-java:test fails during Java 11 Precommit job
Example stack trace:
> Task :runners:direct-java:test org.apache.beam.runners.direct.WatermarkManagerTest > updateWatermarkWithDifferentWindowedValueInstances SKIPPED org.apache.beam.runners.direct.ExecutorServiceParallelExecutorTest > testNoThreadsLeakInPipelineExecution SKIPPED org.apache.beam.runners.direct.ExecutorServiceParallelExecutorTest > ensureMetricsThreadDoesntLeak SKIPPED org.apache.beam.runners.direct.DirectRunnerApiSurfaceTest > testDirectRunnerApiSurface FAILED java.lang.AssertionError: Expected: API surface to include only: Classes in package "org.apache.beam.sdk" Classes in package "org.apache.beam.runners.direct" Classes in package "org.joda.time" Classes in package "javax.annotation" Classes in package "java.math" but: The following white-listed scopes did not have matching classes on the API surface: No Classes in package "java.math" No Classes in package "javax.annotation" No Classes in package "org.apache.beam.runners.direct" No Classes in package "org.apache.beam.sdk" No Classes in package "org.joda.time" at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) at org.junit.Assert.assertThat(Assert.java:966) at org.junit.Assert.assertThat(Assert.java:931) at org.apache.beam.runners.direct.DirectRunnerApiSurfaceTest.testDirectRunnerApiSurface(DirectRunnerApiSurfaceTest.java:76) Gradle Test Executor 97 finished executing tests.