You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Tomo Suzuki (Jira)" <ji...@apache.org> on 2019/11/13 18:51:00 UTC

[jira] [Commented] (BEAM-8650) org.apache.beam.sdk.io.clickhouse.AtomicInsertTest.testIdempotentInsert fails

    [ https://issues.apache.org/jira/browse/BEAM-8650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16973602#comment-16973602 ] 

Tomo Suzuki commented on BEAM-8650:
-----------------------------------

Why is it trying t oconnect 172.27.0.2 ?

{noformat}
suztomo@suxtomo24:~/beam4$ nslookup 172.27.0.2
2.0.27.172.in-addr.arpa	name = us-mtv-2700-accsw2-1-2.mtv.corp.google.com.

Authoritative answers can be found from:

suztomo@suxtomo24:~/beam4$ telnet us-mtv-2700-accsw2-1-2.mtv.corp.google.com 2181
Trying 172.27.0.2...
telnet: Unable to connect to remote host: Connection timed out
{noformat}



> org.apache.beam.sdk.io.clickhouse.AtomicInsertTest.testIdempotentInsert fails
> -----------------------------------------------------------------------------
>
>                 Key: BEAM-8650
>                 URL: https://issues.apache.org/jira/browse/BEAM-8650
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>         Environment: JVM: 1.8.0_232 (Debian 25.232-b09)
>            Reporter: Tomo Suzuki
>            Priority: Major
>
> The test fails in my development environment.
> BEAM-6388 (fixed in January 2019) seems similar.
> {noformat}
> suztomo@suxtomo24:~/beam4$ ./gradlew -p sdks/java/io/clickhouse check
> Configuration on demand is an incubating feature.> Task :sdks:java:io:clickhouse:testorg.apache.beam.sdk.io.clickhouse.AtomicInsertTest > testIdempotentInsert FAILED
>  ru.yandex.clickhouse.except.ClickHouseException at AtomicInsertTest.java:100
>  Caused by: java.lang.Throwable at AtomicInsertTest.java:10034 tests completed, 1 failed> Task :sdks:java:io:clickhouse:test FAILEDFAILURE: Build failed with an exception.* What went wrong:
> Execution failed for task ':sdks:java:io:clickhouse:test'.
> > There were failing tests. See the report at: file:///usr/local/google/home/suztomo/beam4/sdks/java/io/clickhouse/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.orgDeprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
> Use '--warning-mode all' to show the individual deprecation warnings.
> See https://docs.gradle.org/5.2.1/userguide/command_line_interface.html#sec:command_line_warningsBUILD FAILED in 58s
> 52 actionable tasks: 1 executed, 51 up-to-date
> suztomo@suxtomo24:~/beam4$ git log -1
> commit a6d3980fcb18562ad6abba562766efdddc32abcf (HEAD -> master)
> Merge: 04030344ca 47eac13854
> Author: Tomo Suzuki <su...@google.com>
> Date: Wed Nov 13 13:19:52 2019 -0500Merge branch 'master' of https://gitbox.apache.org/repos/asf/beam
> suztomo@suxtomo24:~/beam4$ ./gradlew -version------------------------------------------------------------
> Gradle 5.2.1
> ------------------------------------------------------------Build time: 2019-02-08 19:00:10 UTC
> Revision: f02764e074c32ee8851a4e1877dd1fea8ffb7183Kotlin DSL: 1.1.3
> Kotlin: 1.3.20
> Groovy: 2.5.4
> Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
> JVM: 1.8.0_232 (Debian 25.232-b09)
> OS: Linux 4.19.67-2rodete2-amd64 amd64{noformat}
>  
> The HTML has the stacktrace:
>  [https://gist.github.com/suztomo/39d00252a1e158479f44cc0baa59b6ad]
>  
> {noformat}
> ru.yandex.clickhouse.except.ClickHouseException: ClickHouse exception, code: 999, host: localhost, port: 32780; Code: 999, e.displayText() = Coordination::Exception: All connection tries failed while connecting to ZooKeeper. Addresses: 172.18.0.2:2181
> Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = Timeout: connect timed out: 172.18.0.2:2181, e.what() = Timeout, 172.18.0.2:2181
> Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = Timeout: connect timed out: 172.18.0.2:2181, e.what() = Timeout, 172.18.0.2:2181
> Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = Timeout: connect timed out: 172.18.0.2:2181, e.what() = Timeout, 172.18.0.2:2181
>  (Connection loss), e.what() = Coordination::Exception
> 	at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:58)
> 	at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:28)
> 	at ru.yandex.clickhouse.ClickHouseStatementImpl.checkForErrorAndThrow(ClickHouseStatementImpl.java:766)
> 	at ru.yandex.clickhouse.ClickHouseStatementImpl.getInputStream(ClickHouseStatementImpl.java:565)
> 	at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:117)
> 	at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:100)
> 	at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:95)
> 	at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:90)
> 	at ru.yandex.clickhouse.ClickHouseStatementImpl.execute(ClickHouseStatementImpl.java:191)
> 	at org.apache.beam.sdk.io.clickhouse.BaseClickHouseTest.executeSql(BaseClickHouseTest.java:141)
> 	at org.apache.beam.sdk.io.clickhouse.AtomicInsertTest.testIdempotentInsert(AtomicInsertTest.java:100)
> 	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.apache.beam.sdk.testing.TestPipeline$1.evaluate(TestPipeline.java:319)
> 	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:305)
> 	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:365)
> 	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:330)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:78)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:328)
> 	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:65)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:292)
> 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
> 	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:305)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:412)
> 	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:110)
> 	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:38)
> 	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:62)
> 	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
> 	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:35)
> 	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
> 	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
> 	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
> 	at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
> 	at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:118)
> 	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:35)
> 	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
> 	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:175)
> 	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:157)
> 	at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404)
> 	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
> 	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> 	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
> 	at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.Throwable: Code: 999, e.displayText() = Coordination::Exception: All connection tries failed while connecting to ZooKeeper. Addresses: 172.18.0.2:2181
> Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = Timeout: connect timed out: 172.18.0.2:2181, e.what() = Timeout, 172.18.0.2:2181
> Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = Timeout: connect timed out: 172.18.0.2:2181, e.what() = Timeout, 172.18.0.2:2181
> Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = Timeout: connect timed out: 172.18.0.2:2181, e.what() = Timeout, 172.18.0.2:2181
>  (Connection loss), e.what() = Coordination::Exception
> 	at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:53)
> 	... 63 more{noformat}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)