[
https://issues.apache.org/jira/browse/CALCITE-6854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17930164#comment-17930164
]
Francis Chuang commented on CALCITE-6854:
-----------------------------------------
It seems to be an issue connecting to the server. Here's the log:
{code:java}
# ./gradlew check
> Configure project :
Building Apache Calcite Avatica 1.27.0-SNAPSHOT
> Task :metrics-dropwizardmetrics:test
0.1sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.metrics.dropwizard.DropwizardCounterTest
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.metrics.dropwizard.DropwizardGaugeTest
0.6sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.metrics.dropwizard.DropwizardHistogramTest
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.metrics.dropwizard.DropwizardMeterTest
0.0sec, 3 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.metrics.dropwizard.DropwizardMetricsSystemFactoryTest
0.3sec, 5 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.metrics.dropwizard.DropwizardMetricsSystemTest
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.metrics.dropwizard.DropwizardTimerTest
1.6sec, 13 completed, 0 failed, 0 skipped, Gradle Test Run
:metrics-dropwizardmetrics:test
> Task :metrics:test
1.2sec, 3 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.metrics.MetricsSystemLoaderTest
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.metrics.noop.NoopMetricsSystemFactoryTest
0.0sec, 2 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.metrics.noop.NoopMetricsSystemTest
1.8sec, 6 completed, 0 failed, 0 skipped, Gradle Test Run
:metrics:test
> Task :core:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :core:compileTestJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :server:compileTestJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> 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 :core:test
2.1sec, 49 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.AvaticaClosedConnectionTest
0.2sec, 101 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.AvaticaClosedPreparedStatementTest
0.1sec, 187 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.AvaticaClosedResultSetTest
0.0sec, 187 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.AvaticaClosedResultSetWithNullStatementTest
0.0sec, 45 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.AvaticaClosedStatementTest
0.2sec, 2 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.AvaticaConnectionTest
0.1sec, 1026 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.AvaticaResultSetConversionsTest
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.AvaticaResultSetTest
0.0sec, 6 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.AvaticaResultSetThrowsSqlExceptionTest
0.3sec, 4 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.AvaticaStatementTest
0.0sec, 4 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.ConnectionConfigImplTest
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.ConnectionPropertiesImplTest
0.0sec, 5 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.CursorFactoryDeduceTest
0.0sec, 20 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.FrameTest
0.0sec, 3 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.MetaImplCollectTest
0.0sec, 2 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.MetaImplCreateIterableTest
0.0sec, 25 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.MetaResultSetTest
0.2sec, 26 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.QueryStateTest
0.0sec, 2 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.RepTest
0.0sec, 2 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.UnregisteredDriverTest
0.1sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.ha.RandomSelectLBStrategyTest
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.ha.RoundRobinLBStrategyTest
0.1sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.ha.ShuffledRoundRobinLBStrategyTest
0.0sec, 2 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.metrics.MetricsHelperTest
0.2sec, 6 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.AbstractHandlerTest
org.apache.calcite.avatica.remote.AvaticaCommonsHttpClientImplTest >
testPersistentContextThreadSafety STANDARD_ERROR
Exception in thread "Thread-5" java.lang.AssertionError: Threaded request
failed with exception: Failed to execute HTTP Request, got HTTP/0
at org.junit.Assert.fail(Assert.java:89)
at
org.apache.calcite.avatica.remote.AvaticaCommonsHttpClientImplTest.lambda$testPersistentContextThreadSafety$0(AvaticaCommonsHttpClientImplTest.java:164)
at java.lang.Thread.run(Thread.java:750)
Exception in thread "Thread-4" java.lang.AssertionError: Threaded request
failed with exception: Failed to execute HTTP Request, got HTTP/0
at org.junit.Assert.fail(Assert.java:89)
at
org.apache.calcite.avatica.remote.AvaticaCommonsHttpClientImplTest.lambda$testPersistentContextThreadSafety$0(AvaticaCommonsHttpClientImplTest.java:164)
at java.lang.Thread.run(Thread.java:750)
Exception in thread "Thread-7" java.lang.AssertionError: Threaded request
failed with exception: Failed to execute HTTP Request, got HTTP/0
at org.junit.Assert.fail(Assert.java:89)
at
org.apache.calcite.avatica.remote.AvaticaCommonsHttpClientImplTest.lambda$testPersistentContextThreadSafety$0(AvaticaCommonsHttpClientImplTest.java:164)
at java.lang.Thread.run(Thread.java:750)
Exception in thread "Thread-6" java.lang.AssertionError: Threaded request
failed with exception: Failed to execute HTTP Request, got HTTP/0
at org.junit.Assert.fail(Assert.java:89)
at
org.apache.calcite.avatica.remote.AvaticaCommonsHttpClientImplTest.lambda$testPersistentContextThreadSafety$0(AvaticaCommonsHttpClientImplTest.java:164)
at java.lang.Thread.run(Thread.java:750)
Exception in thread "Thread-8" java.lang.AssertionError: Threaded request
failed with exception: Failed to execute HTTP Request, got HTTP/0
at org.junit.Assert.fail(Assert.java:89)
at
org.apache.calcite.avatica.remote.AvaticaCommonsHttpClientImplTest.lambda$testPersistentContextThreadSafety$0(AvaticaCommonsHttpClientImplTest.java:164)
at java.lang.Thread.run(Thread.java:750)
0.5sec, 4 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.AvaticaCommonsHttpClientImplTest
0.1sec, 3 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.AvaticaHttpClientFactoryTest
0.1sec, 2 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.AvaticaHttpClientTest
0.0sec, 2 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.ErrorResponseTest
> Task :shaded:avatica:test
0.1sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.shadetest.ShadingTest
0.5sec, 1 completed, 0 failed, 0 skipped, Gradle Test Run
:shaded:avatica:test
> Task :core:test
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.ExecuteBatchRequestTest
0.0sec, 4 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.ExecuteRequestTest
0.2sec, 5 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.KerberosConnectionTest
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.MetaDataOperationTest
0.1sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.ProtobufHandlerTest
0.0sec, 7 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.ProtobufSerializationTest
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.ProtobufServiceTest
0.1sec, 54 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.ProtobufTranslationImplTest
0.0sec, 21 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.remote.TypedValueTest
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.test.AvaticaClientRuntimeExceptionTest
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.test.AvaticaSeverityTest
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.test.AvaticaSqlExceptionTest
0.0sec, 6 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.test.AvaticaUtilsTest
0.0sec, 4 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.test.ConnectStringParserTest
0.2sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.test.JsonHandlerTest
0.0sec, 10 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.util.ArrayAccessorTest
0.0sec, 9 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.util.ArrayImplTest
0.1sec, 6 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.util.DateAccessorTest
0.1sec, 14 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.util.DateFromNumberAccessorTest
0.2sec, 57 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.util.DateTimeUtilsTest
0.0sec, 17 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.util.LastDayTest
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.util.NumberAccessorTest
0.0sec, 6 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.util.StructImplTest
0.0sec, 5 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.util.TimeAccessorTest
0.0sec, 8 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.util.TimeFromNumberAccessorTest
0.0sec, 11 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.util.TimestampAccessorTest
0.1sec, 16 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.util.TimestampFromNumberAccessorTest
0.0sec, 11 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.util.TimestampFromUtilDateAccessorTest
0.0sec, 1 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.util.UnsynchronizedBufferTest
6.5sec, 2001 completed, 0 failed, 0 skipped, Gradle Test Run
:core:test
> Task :standalone-server:test
0.1sec, 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
6.2sec, 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:44197;serialization=JSON;truststore=/calcite-avatica/server/build/avatica-test-emptypw.jks]
STANDARD_OUT
2025-02-25 08:31:36,073 [Test worker] ERROR - HTTPS TlsSocketStrategy
configuration failed
org.apache.calcite.avatica.SslDriverTest >
testInvalidKeyStoreType[jdbc:avatica:remote:url=https://localhost:38297;serialization=JSON;truststore=/calcite-avatica/server/build/avatica-test.jks;truststore_password=avaticasecret]
STANDARD_OUT
2025-02-25 08:31:36,116 [Test worker] ERROR - HTTPS TlsSocketStrategy
configuration failed
org.apache.calcite.avatica.SslDriverTest >
testInvalidKeyStoreType[jdbc:avatica:remote:url=https://localhost:40223;serialization=PROTOBUF;truststore=/calcite-avatica/server/build/avatica-test-emptypw.jks]
STANDARD_OUT
2025-02-25 08:31:36,178 [Test worker] ERROR - HTTPS TlsSocketStrategy
configuration failed
org.apache.calcite.avatica.SslDriverTest >
testInvalidKeyStoreType[jdbc:avatica:remote:url=https://localhost:46409;serialization=PROTOBUF;truststore=/calcite-avatica/server/build/avatica-test.jks;truststore_password=avaticasecret]
STANDARD_OUT
2025-02-25 08:31:36,218 [Test worker] ERROR - HTTPS TlsSocketStrategy
configuration failed
0.4sec, 12 completed, 0 failed, 0 skipped,
org.apache.calcite.avatica.SslDriverTest
4.1sec, org.apache.calcite.avatica.ha.ConnectionPropertiesHATest >
testConnectionPropertiesHALBFailover
FAILURE 0.0sec, org.apache.calcite.avatica.ha.ConnectionPropertiesHATest >
testConnectionPropertiesHAHttpConnectionTimeout5Sec
java.lang.AssertionError: Expected RuntimeException with
ConnectTimeoutException cause, got:
java.lang.RuntimeException:
org.apache.hc.client5.http.HttpHostConnectException: Connect to
http://240.0.0.1:9000 [/240.0.0.1] failed: Connection refused (Connection
refused)
at
org.apache.calcite.avatica.remote.AvaticaCommonsHttpClientImpl.send(AvaticaCommonsHttpClientImpl.java:197)
at
org.apache.calcite.avatica.remote.RemoteProtobufService._apply(RemoteProtobufService.java:45)
at
org.apache.calcite.avatica.remote.ProtobufService.apply(ProtobufService.java:81)
at org.apache.calcite.avatica.remote.Driver.connect(Driver.java:194)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:208)
at
org.apache.calcite.avatica.ha.ConnectionPropertiesHATest.testConnectionPropertiesHAHttpConnectionTimeout5Sec(ConnectionPropertiesHATest.java:266)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at
org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at
org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:112)
at
org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
at
org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:40)
at
org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:60)
at
org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
at
org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at
org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
at
org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
at
org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)
at
org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
at
org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
at
org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
at
org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
at
org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
at
org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
at
worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
at
worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
Caused by: org.apache.hc.client5.http.HttpHostConnectException: Connect to
http://240.0.0.1:9000 [/240.0.0.1] failed: Connection refused (Connection
refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at
org.apache.hc.client5.http.impl.io.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:216)
at
org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:490)
at
org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:164)
at
org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:174)
at
org.apache.hc.client5.http.impl.classic.ConnectExec.execute(ConnectExec.java:144)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
at
org.apache.hc.client5.http.impl.classic.ProtocolExec.execute(ProtocolExec.java:192)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
at
org.apache.hc.client5.http.impl.classic.ContentCompressionExec.execute(ContentCompressionExec.java:150)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
at
org.apache.hc.client5.http.impl.classic.HttpRequestRetryExec.execute(HttpRequestRetryExec.java:113)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
at
org.apache.hc.client5.http.impl.classic.RedirectExec.execute(RedirectExec.java:110)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
at
org.apache.hc.client5.http.impl.classic.InternalHttpClient.doExecute(InternalHttpClient.java:174)
at
org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:87)
at
org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:55)
at
org.apache.hc.client5.http.classic.HttpClient.executeOpen(HttpClient.java:183)
at
org.apache.calcite.avatica.remote.AvaticaCommonsHttpClientImpl.executeOpen(AvaticaCommonsHttpClientImpl.java:205)
at
org.apache.calcite.avatica.remote.AvaticaCommonsHttpClientImpl.send(AvaticaCommonsHttpClientImpl.java:176)
... 50 more
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.assertTrue(Assert.java:42)
at
org.apache.calcite.avatica.ha.ConnectionPropertiesHATest.testConnectionPropertiesHAHttpConnectionTimeout5Sec(ConnectionPropertiesHATest.java:276)
org.apache.calcite.avatica.ha.ConnectionPropertiesHATest >
testConnectionPropertiesHAHttpConnectionTimeout5Sec FAILED
java.lang.AssertionError: Expected RuntimeException with
ConnectTimeoutException cause, got:
java.lang.RuntimeException:
org.apache.hc.client5.http.HttpHostConnectException: Connect to
http://240.0.0.1:9000 [/240.0.0.1] failed: Connection refused (Connection
refused)
at
org.apache.calcite.avatica.remote.AvaticaCommonsHttpClientImpl.send(AvaticaCommonsHttpClientImpl.java:197)
at
org.apache.calcite.avatica.remote.RemoteProtobufService._apply(RemoteProtobufService.java:45)
at
org.apache.calcite.avatica.remote.ProtobufService.apply(ProtobufService.java:81)
at org.apache.calcite.avatica.remote.Driver.connect(Driver.java:194)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:208)
at
org.apache.calcite.avatica.ha.ConnectionPropertiesHATest.testConnectionPropertiesHAHttpConnectionTimeout5Sec(ConnectionPropertiesHATest.java:266)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at
org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at
org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:112)
at
org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
at
org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:40)
at
org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:60)
at
org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
at
org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at
org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
at
org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
at
org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)
at
org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
at
org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
at
org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
at
org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
at
org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
at
org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
at
worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
at
worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
Caused by: org.apache.hc.client5.http.HttpHostConnectException: Connect to
http://240.0.0.1:9000 [/240.0.0.1] failed: Connection refused (Connection
refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at
org.apache.hc.client5.http.impl.io.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:216)
at
org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:490)
at
org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:164)
at
org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:174)
at
org.apache.hc.client5.http.impl.classic.ConnectExec.execute(ConnectExec.java:144)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
at
org.apache.hc.client5.http.impl.classic.ProtocolExec.execute(ProtocolExec.java:192)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
at
org.apache.hc.client5.http.impl.classic.ContentCompressionExec.execute(ContentCompressionExec.java:150)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
at
org.apache.hc.client5.http.impl.classic.HttpRequestRetryExec.execute(HttpRequestRetryExec.java:113)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
at
org.apache.hc.client5.http.impl.classic.RedirectExec.execute(RedirectExec.java:110)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
at
org.apache.hc.client5.http.impl.classic.InternalHttpClient.doExecute(InternalHttpClient.java:174)
at
org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:87)
at
org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:55)
at
org.apache.hc.client5.http.classic.HttpClient.executeOpen(HttpClient.java:183)
at
org.apache.calcite.avatica.remote.AvaticaCommonsHttpClientImpl.executeOpen(AvaticaCommonsHttpClientImpl.java:205)
at
org.apache.calcite.avatica.remote.AvaticaCommonsHttpClientImpl.send(AvaticaCommonsHttpClientImpl.java:176)
... 50 more
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.assertTrue(Assert.java:42)
at
org.apache.calcite.avatica.ha.ConnectionPropertiesHATest.testConnectionPropertiesHAHttpConnectionTimeout5Sec(ConnectionPropertiesHATest.java:276)
7.0sec, org.apache.calcite.avatica.ha.ConnectionPropertiesHATest >
testConnectionPropertiesHATestInvalidLBUrl
FAILURE 11.5sec, 12 completed, 1 failed, 0 skipped,
org.apache.calcite.avatica.ha.ConnectionPropertiesHATest
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.3sec, 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.0sec, 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.0sec, 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 113.9sec, 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 2m 5s
111 actionable tasks: 111 executed
{code}
> 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
> Priority: Major
> 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)