The error seems to come from the use of Docker through our dependency to
org.testcontainers.
I am not sure why it comes up but you should be able to walk around the
issue by setting calcite.test.docker property [1] to false.

Best,
Stamatis

[1]
https://github.com/apache/calcite/blob/8430023f4616a9b239641b59420f56ecc3fa3e40/core/src/main/java/org/apache/calcite/config/CalciteSystemProperty.java#L258

On Tue, Jun 22, 2021 at 11:26 PM Julian Hyde <jhyde.apa...@gmail.com> wrote:

> It looks as if the Redis adapter test is trying to get an unavailable
> port. See whether the build succeeds if the Redis adapter test is skipped:
>
> ./gradlew clean test -x :redis:test
>
> If that passes, it indicates that Calcite is sound. (The Redis adapter is
> probably sound, too, and its test would pass if given a different port.)
>
> Julian
>
>
> > On Jun 22, 2021, at 9:36 AM, Kishore Kunal Mr <kishore.kunal...@ibm.com>
> wrote:
> >
> >
> >
> > Hi Team,
> > I encountered an issue while building calcite on ppc64le architecture.
> For
> > the build I followed the steps provided on official site [
> > https://calcite.apache.org/docs/howto.html#building-from-git], but
> failing
> > to do so. Hence need your support in fixing the issue.  Logs can be found
> > below
> > Host details:
> > ===========
> > ubuntu@kishorkunal2:~/newpackages/calcite$ uname -a
> > Linux kishorkunal2 4.15.0-115-generic #116-Ubuntu SMP Wed Aug 26 14:34:20
> > UTC 2020 ppc64le ppc64le ppc64le GNU/Linux
> > ubuntu@kishorkunal2:~/newpackages/calcite$ gradle --version
> > ------------------------------------------------------------
> > Gradle 5.0
> > ------------------------------------------------------------
> > Build time:   2018-11-26 11:48:43 UTC
> > Revision:     7fc6e5abf2fc5fe0824aec8a0f5462664dbcd987
> >
> > Kotlin DSL:   1.0.4
> > Kotlin:       1.3.10
> > Groovy:       2.5.4
> > Ant:          Apache Ant(TM) version 1.9.13 compiled on July 10 2018
> > JVM:          1.8.0_292 (Private Build 25.292-b10)
> > OS:           Linux 4.15.0-115-generic ppc64le
> >
> >
> > Error log:
> > =======
> >
> > Gradle Test Executor 1 STANDARD_ERROR
> >    Jun 22, 2021 4:31:20 PM
> > org.junit.jupiter.engine.config.EnumConfigurationParameterConverter get
> >    INFO: Using parallel execution mode 'CONCURRENT' set via the
> > 'junit.jupiter.execution.parallel.mode.default' configuration parameter.
> > WARNING   0.1sec,    1 completed,   0 failed,   1 skipped,
> > org.apache.calcite.adapter.redis.RedisMiniServer
> >
> > Gradle Test Executor 1 STANDARD_OUT
> >    2021-06-22 16:31:21,219 [ForkJoinPool-1-worker-1] INFO  - Loaded
> > org.testcontainers.dockerclient.UnixSocketClientProviderStrategy from
> > ~/.testcontainers.properties, will try it first
> >    2021-06-22 16:31:22,516 [ForkJoinPool-1-worker-1] INFO  - Found Docker
> > environment with local Unix socket (unix:///var/run/docker.sock)
> >    2021-06-22 16:31:22,519 [ForkJoinPool-1-worker-1] INFO  - Docker host
> > IP address is localhost
> >    2021-06-22 16:31:22,566 [ForkJoinPool-1-worker-1] INFO  - Connected to
> > docker:
> >      Server Version: 20.10.2
> >      API Version: 1.41
> >      Operating System: Ubuntu 18.04.5 LTS
> >      Total Memory: 8160 MB
> >    2021-06-22 16:31:22,571 [ForkJoinPool-1-worker-1] INFO  - Image name
> > substitution will be performed by: DefaultImageNameSubstitutor (composite
> > of 'ConfigurationFileImageNameSubstitutor' and
> > 'PrefixingImageNameSubstitutor')
> >    2021-06-22 16:31:22,627 [ForkJoinPool-1-worker-1] INFO  - Failure when
> > attempting to lookup auth config. Please ignore if you don't have images
> in
> > an authenticated registry. Details: (dockerImageName:
> > testcontainers/ryuk:0.3.0, configFile: /home/ubuntu/.docker/config.json.
> > Falling back to docker-java default behaviour. Exception
> > message: /home/ubuntu/.docker/config.json (No such file or directory)
> >
> >> Task :server:test
> >
> > Gradle Test Executor 2 STANDARD_ERROR
> >    Jun 22, 2021 4:31:21 PM
> > org.junit.jupiter.engine.config.EnumConfigurationParameterConverter get
> >    INFO: Using parallel execution mode 'CONCURRENT' set via the
> > 'junit.jupiter.execution.parallel.mode.default' configuration parameter.
> >
> > ServerTest STANDARD_ERROR
> >    Jun 22, 2021 4:31:21 PM
> > org.junit.jupiter.engine.config.EnumConfigurationParameterConverter get
> >    INFO: Using parallel execution mode 'CONCURRENT' set via the
> > 'junit.jupiter.execution.parallel.mode.default' configuration parameter.
> > WARNING   3.8sec,  439 completed,   0 failed,   5 skipped,
> > org.apache.calcite.test.ServerParserTest
> > WARNING   4.7sec,  439 completed,   0 failed,   6 skipped,
> > org.apache.calcite.test.ServerUnParserTest
> >          5.2sec, org.apache.calcite.test.ServerTest > testVirtualColumn()
> >          6.7sec, org.apache.calcite.test.ServerQuidemTest > test
> > (String)[5], [5] sql/table.iq
> > WARNING   7.3sec,   15 completed,   0 failed,   1 skipped,
> > org.apache.calcite.test.ServerTest
> >
> > ServerQuidemTest STANDARD_OUT
> >    2021-06-22 16:31:30,285 [ForkJoinPool-1-worker-1] INFO  - open start -
> > state modified
> >    2021-06-22 16:31:30,324 [ForkJoinPool-1-worker-1] INFO  - Checkpoint
> > start
> >    2021-06-22 16:31:30,324 [ForkJoinPool-1-worker-1] INFO  - Checkpoint
> > end - txts: 25
> >          3.5sec, org.apache.calcite.test.ServerQuidemTest > test
> > (String)[1], [1] sql/materialized_view.iq
> >          8.8sec,    6 completed,   0 failed,   0 skipped,
> > org.apache.calcite.test.ServerQuidemTest
> > WARNING  11.3sec,  899 completed,   0 failed,  12 skipped, Gradle Test
> > Run :server:test
> >
> >> Task :server:check
> >> Task :server:build
> >
> >> Task :redis:test FAILED
> > FAILURE   0.0sec, org.apache.calcite.adapter.redis.RedisAdapterCaseBase >
> > initializationError
> >    java.lang.IllegalArgumentException: Requested port (8080) is not
> mapped
> >        at org.testcontainers.containers.ContainerState.getMappedPort
> > (ContainerState.java:152)
> >        at java.util.Optional.map(Optional.java:215)
> >        at org.testcontainers.containers.ContainerState.getFirstMappedPort
> > (ContainerState.java:129)
> >        at org.testcontainers.utility.ResourceReaper.start
> > (ResourceReaper.java:153)
> >        at org.testcontainers.DockerClientFactory.client
> > (DockerClientFactory.java:205)
> >        at org.testcontainers.DockerClientFactory.isDockerAvailable
> > (DockerClientFactory.java:120)
> >        at
> > org.apache.calcite.adapter.redis.RedisCaseBase.startRedisContainer
> > (RedisCaseBase.java:66)
> >        at org.junit.platform.commons.util.ReflectionUtils.invokeMethod
> > (ReflectionUtils.java:675)
> >        at org.junit.jupiter.engine.execution.MethodInvocation.proceed
> > (MethodInvocation.java:60)
> >        at org.junit.jupiter.engine.execution.InvocationInterceptorChain
> > $ValidatingInvocation.proceed(InvocationInterceptorChain.java:125)
> >        at org.junit.jupiter.engine.extension.TimeoutInvocation.proceed
> > (TimeoutInvocation.java:46)
> >        at org.junit.jupiter.engine.extension.TimeoutExtension.intercept
> > (TimeoutExtension.java:139)
> >        at
> >
> org.junit.jupiter.engine.extension.TimeoutExtension.interceptLifecycleMethod
> > (TimeoutExtension.java:118)
> >        at
> >
> org.junit.jupiter.engine.extension.TimeoutExtension.interceptBeforeAllMethod
> > (TimeoutExtension.java:67)
> >        at org.junit.jupiter.engine.execution.ExecutableInvoker
> > $ReflectiveInterceptorCall.lambda$ofVoidMethod$0
> > (ExecutableInvoker.java:115)
> >        at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda
> > $invoke$0(ExecutableInvoker.java:105)
> >        at org.junit.jupiter.engine.execution.InvocationInterceptorChain
> > $InterceptedInvocation.proceed(InvocationInterceptorChain.java:104)
> >        at
> > org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed
> > (InvocationInterceptorChain.java:62)
> >        at
> >
> org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke
> > (InvocationInterceptorChain.java:43)
> >        at
> > org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke
> > (InvocationInterceptorChain.java:35)
> >        at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke
> > (ExecutableInvoker.java:104)
> >        at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke
> > (ExecutableInvoker.java:98)
> >        at
> > org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda
> > $invokeBeforeAllMethods$8(ClassBasedTestDescriptor.java:371)
> >        at
> > org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute
> > (ThrowableCollector.java:73)
> >        at
> >
> org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeBeforeAllMethods
> > (ClassBasedTestDescriptor.java:369)
> >        at
> > org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before
> > (ClassBasedTestDescriptor.java:193)
> >        at
> > org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before
> > (ClassBasedTestDescriptor.java:77)
> >        at
> > org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda
> > $executeRecursively$5(NodeTestTask.java:132)
> >        at
> > org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute
> > (ThrowableCollector.java:73)
> >        at
> > org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda
> > $executeRecursively$7(NodeTestTask.java:125)
> >        at org.junit.platform.engine.support.hierarchical.Node.around
> > (Node.java:135)
> >        at
> > org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda
> > $executeRecursively$8(NodeTestTask.java:123)
> >        at
> > org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute
> > (ThrowableCollector.java:73)
> >        at
> >
> org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively
> > (NodeTestTask.java:122)
> >        at
> > org.junit.platform.engine.support.hierarchical.NodeTestTask.execute
> > (NodeTestTask.java:80)
> >        at
> >
> org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService
> > $ExclusiveTask.compute
> > (ForkJoinPoolHierarchicalTestExecutorService.java:171)
> >        at
> >
> org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService.executeNonConcurrentTasks
> > (ForkJoinPoolHierarchicalTestExecutorService.java:141)
> >        at
> >
> org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService.invokeAll
> > (ForkJoinPoolHierarchicalTestExecutorService.java:121)
> >        at
> > org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda
> > $executeRecursively$5(NodeTestTask.java:139)
> >        at
> > org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute
> > (ThrowableCollector.java:73)
> >        at
> > org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda
> > $executeRecursively$7(NodeTestTask.java:125)
> >        at org.junit.platform.engine.support.hierarchical.Node.around
> > (Node.java:135)
> >        at
> > org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda
> > $executeRecursively$8(NodeTestTask.java:123)
> >        at
> > org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute
> > (ThrowableCollector.java:73)
> >        at
> >
> org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively
> > (NodeTestTask.java:122)
> >        at
> > org.junit.platform.engine.support.hierarchical.NodeTestTask.execute
> > (NodeTestTask.java:80)
> >
> > FAILURE  12.3sec,    1 completed,   1 failed,   0 skipped,
> > org.apache.calcite.adapter.redis.RedisAdapterCaseBase
> > FAILURE  14.2sec,    2 completed,   1 failed,   1 skipped, Gradle Test
> > Run :redis:test
> >
> > 2 tests completed, 1 failed, 1 skipped
> >
> > FAILURE: Build failed with an exception.
> >
> > * What went wrong:
> > Execution failed for task ':redis:test'.
> >> There were failing tests. See the report at:
> >
> file:///home/ubuntu/newpackages/calcite/redis/build/reports/tests/test/index.html
> >
> > * Try:
> > Run with --stacktrace option to get the stack trace. Run with --info or
> > --debug option to get more log output. Run with --scan to get full
> > insights.
> >
> > * Get more help at https://help.gradle.org
> >
> > Deprecated Gradle features were used in this build, making it
> incompatible
> > with Gradle 7.0.
> > Use '--warning-mode all' to show the individual deprecation warnings.
> > See
> >
> https://docs.gradle.org/6.8.3/userguide/command_line_interface.html#sec:command_line_warnings
> >
> > BUILD FAILED in 38s
> > 377 actionable tasks: 6 executed, 371 up-to-date
> >
> > Thanks & Regards
> > Kishor Kunal Raj
>
>

Reply via email to