Francis Chuang created CALCITE-6854:
---------------------------------------
Summary: ConnectionPropertiesHATest fails when running in
eclipse-temurin:8 docker container
Key: CALCITE-6854
URL: https://issues.apache.org/jira/browse/CALCITE-6854
Project: Calcite
Issue Type: Task
Components: avatica
Affects Versions: avatica-1.26.0
Reporter: Francis Chuang
Fix For: avatica-1.27.0
To reproduce, start an `eclipse-temurin:8` docker container, install git and
clone the avatica repo. Then run `./gradlew check`:
{code:java}
$ ./gradlew check
> Configure project :
Building Apache Calcite Avatica 1.27.0-SNAPSHOT
> Task :shaded:avatica:getLicenses
License overrides were declared but unused for the following dependencies:
[org.slf4j:slf4j-api:1.7.25]
> Task :standalone-server:getLicenses
License overrides were declared but unused for the following dependencies:
[org.slf4j:slf4j-api:1.7.25]
> Task :shaded:avatica:test
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.shadetest.ShadingTest
0.3sec, 1 completed, 0 failed, 0 skipped, Gradle Test Run
:shaded:avatica:test
> Task :standalone-server:test
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.shadetest.ShadingTest
0.3sec, 1 completed, 0 failed, 0 skipped, Gradle Test Run
:standalone-server:test
> Task :server:test
4.1sec, org.apache.calcite.avatica.ha.ConnectionPropertiesHATest >
testConnectionPropertiesHALBFailover
FAILURE 0.0sec, org.apache.calcite.avatica.ha.ConnectionPropertiesHATest >
testConnectionPropertiesHAHttpConnectionTimeout5Sec
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:87)
at org.junit.Assert.assertTrue(Assert.java:42)
at org.junit.Assert.assertTrue(Assert.java:53)
at
org.apache.calcite.avatica.ha.ConnectionPropertiesHATest.testConnectionPropertiesHAHttpConnectionTimeout5Sec(ConnectionPropertiesHATest.java:269)
org.apache.calcite.avatica.ha.ConnectionPropertiesHATest >
testConnectionPropertiesHAHttpConnectionTimeout5Sec FAILED
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:87)
at org.junit.Assert.assertTrue(Assert.java:42)
at org.junit.Assert.assertTrue(Assert.java:53)
at
org.apache.calcite.avatica.ha.ConnectionPropertiesHATest.testConnectionPropertiesHAHttpConnectionTimeout5Sec(ConnectionPropertiesHATest.java:269)
7.0sec, org.apache.calcite.avatica.ha.ConnectionPropertiesHATest >
testConnectionPropertiesHATestInvalidLBUrl
FAILURE 13.6sec, 12 completed, 1 failed, 0 skipped,
org.apache.calcite.avatica.ha.ConnectionPropertiesHATest
3.3sec, 8 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.AvaticaSpnegoTest
WARNING 0.0sec, 16 completed, 0 failed, 8 skipped,
org.apache.calcite.avatica.RemoteDriverMockTest
WARNING 0.3sec, 82 completed, 0 failed, 4 skipped,
org.apache.calcite.avatica.RemoteDriverTest
org.apache.calcite.avatica.SslDriverTest >
testInvalidKeyStoreType[jdbc:avatica:remote:url=https://localhost:34613;serialization=JSON;truststore=/calcite-avatica/server/build/avatica-test-emptypw.jks]
STANDARD_OUT
2025-02-24 08:41:10,616 [Test worker] ERROR - HTTPS TlsSocketStrategy
configuration failed
org.apache.calcite.avatica.SslDriverTest >
testInvalidKeyStoreType[jdbc:avatica:remote:url=https://localhost:44795;serialization=JSON;truststore=/calcite-avatica/server/build/avatica-test.jks;truststore_password=avaticasecret]
STANDARD_OUT
2025-02-24 08:41:10,658 [Test worker] ERROR - HTTPS TlsSocketStrategy
configuration failed
org.apache.calcite.avatica.SslDriverTest >
testInvalidKeyStoreType[jdbc:avatica:remote:url=https://localhost:33645;serialization=PROTOBUF;truststore=/calcite-avatica/server/build/avatica-test-emptypw.jks]
STANDARD_OUT
2025-02-24 08:41:10,694 [Test worker] ERROR - HTTPS TlsSocketStrategy
configuration failed
org.apache.calcite.avatica.SslDriverTest >
testInvalidKeyStoreType[jdbc:avatica:remote:url=https://localhost:37603;serialization=PROTOBUF;truststore=/calcite-avatica/server/build/avatica-test.jks;truststore_password=avaticasecret]
STANDARD_OUT
2025-02-24 08:41:10,730 [Test worker] ERROR - HTTPS TlsSocketStrategy
configuration failed
0.3sec, 12 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.SslDriverTest
0.1sec, 6 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.jdbc.JdbcMetaTest
0.1sec, 5 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.jdbc.StatementInfoTest
0.4sec, 6 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.AlternatingRemoteMetaTest
0.5sec, 34 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.ArrayTypeTest
10.0sec, org.apache.calcite.avatica.remote.ConnectionPropertiesTest >
testConnectionPropertiesSyncNoReconnect[JSON]
10.0sec, org.apache.calcite.avatica.remote.ConnectionPropertiesTest >
testConnectionPropertiesSync[JSON]
10.0sec, org.apache.calcite.avatica.remote.ConnectionPropertiesTest >
testConnectionPropertiesSyncNoReconnect[PROTOBUF]
10.0sec, org.apache.calcite.avatica.remote.ConnectionPropertiesTest >
testConnectionPropertiesSync[PROTOBUF]
40.1sec, 4 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.ConnectionPropertiesTest
0.1sec, 2 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.RemoteHttpClientTest
5.0sec, org.apache.calcite.avatica.remote.RemoteMetaTest >
testNoTimeout[JSON]
5.0sec, org.apache.calcite.avatica.remote.RemoteMetaTest >
testNoTimeout[PROTOBUF]
WARNING 12.3sec, 46 completed, 0 failed, 2 skipped,
org.apache.calcite.avatica.remote.RemoteMetaTest
0.1sec, 3 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.server.AbstractAvaticaHandlerTest
0.0sec, 3 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.server.AvaticaSpnegoAuthenticatorTest
0.0sec, 7 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.server.BasicAuthHttpServerTest
0.1sec, 4 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.server.CustomAuthHttpServerTest
0.0sec, 8 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.server.DigestAuthHttpServerTest
0.0sec, 2 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.server.HandlerFactoryTest
0.0sec, 6 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.server.HttpQueryStringParameterRemoteUserExtractorTest
0.0sec, 3 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.server.HttpServerCustomizerTest
0.0sec, 3 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.server.HttpServerSpnegoWithoutJaasTest
10.0sec, org.apache.calcite.avatica.remote.ConnectionPropertiesTest >
testConnectionPropertiesSyncNoReconnect[JSON]
10.0sec, org.apache.calcite.avatica.remote.ConnectionPropertiesTest >
testConnectionPropertiesSync[JSON]
10.0sec, org.apache.calcite.avatica.remote.ConnectionPropertiesTest >
testConnectionPropertiesSyncNoReconnect[PROTOBUF]
10.0sec, org.apache.calcite.avatica.remote.ConnectionPropertiesTest >
testConnectionPropertiesSync[PROTOBUF]
WARNING 40.2sec, 86 completed, 0 failed, 4 skipped,
org.apache.calcite.avatica.test.AvaticaSuite
FAILURE 112.7sec, 358 completed, 1 failed, 18 skipped, Gradle Test Run
:server:test
358 tests completed, 1 failed, 18 skipped
> Task :server:test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':server:test'.
> There were failing tests. See the report at:
> file:///calcite-avatica/server/build/reports/tests/test/index.html
* Try:
> Run with --scan to get full insights.
Deprecated Gradle features were used in this build, making it incompatible with
Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings
and determine if they come from your own scripts or plugins.
For more on this, please refer to
https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings
in the Gradle documentation.
BUILD FAILED in 1m 57s
111 actionable tasks: 15 executed, 96 up-to-date
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)