[ 
https://issues.apache.org/jira/browse/PHOENIX-6846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rushabh Shah updated PHOENIX-6846:
----------------------------------
    Description: 
org.apache.phoenix.jdbc.FailoverPhoenixConnectionIT#testConnectionWhenActiveZKRestarts
 fails consistently on master branch. Stack trace:
{noformat}
java.lang.IllegalStateException: Connection to the cluster is closed
 at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.throwConnectionClosedException(ConnectionQueryServicesImpl.java:5705)
 at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.checkClosed(ConnectionQueryServicesImpl.java:5694)
 at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.connect(ConnectionQueryServicesImpl.java:882)
 at 
org.apache.phoenix.jdbc.HighAvailabilityGroup.connectToOneCluster(HighAvailabilityGroup.java:596)
 at 
org.apache.phoenix.jdbc.HighAvailabilityGroup.connectActive(HighAvailabilityGroup.java:509)
 at 
org.apache.phoenix.jdbc.FailoverPhoenixConnection.<init>(FailoverPhoenixConnection.java:112)
 at 
org.apache.phoenix.jdbc.HighAvailabilityPolicy$1.provide(HighAvailabilityPolicy.java:44)
 at 
org.apache.phoenix.jdbc.HighAvailabilityGroup.connect(HighAvailabilityGroup.java:493)
 at 
org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:149)
 at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:227)
 at java.sql.DriverManager.getConnection(DriverManager.java:664)
 at java.sql.DriverManager.getConnection(DriverManager.java:208)
 at 
org.apache.phoenix.jdbc.FailoverPhoenixConnectionIT.createFailoverConnection(FailoverPhoenixConnectionIT.java:839)
 at 
org.apache.phoenix.jdbc.FailoverPhoenixConnectionIT.testConnectionWhenActiveZKRestarts(FailoverPhoenixConnectionIT.java:289)
 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.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:288)
 at 
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:282)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.lang.Thread.run(Thread.java:748)
{noformat}

Example build: 
https://ci-hadoop.apache.org/blue/organizations/jenkins/Phoenix%2FPhoenix-PreCommit-GitHub-PR/detail/PR-1543/4/tests/

  was:
org.apache.phoenix.jdbc.FailoverPhoenixConnectionIT#testConnectionWhenActiveZKRestarts
 fails consistently on master branch. Stack trace:

{noformat}
java.lang.IllegalStateException: Connection to the cluster is closed
 at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.throwConnectionClosedException(ConnectionQueryServicesImpl.java:5705)
 at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.checkClosed(ConnectionQueryServicesImpl.java:5694)
 at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.connect(ConnectionQueryServicesImpl.java:882)
 at 
org.apache.phoenix.jdbc.HighAvailabilityGroup.connectToOneCluster(HighAvailabilityGroup.java:596)
 at 
org.apache.phoenix.jdbc.HighAvailabilityGroup.connectActive(HighAvailabilityGroup.java:509)
 at 
org.apache.phoenix.jdbc.FailoverPhoenixConnection.<init>(FailoverPhoenixConnection.java:112)
 at 
org.apache.phoenix.jdbc.HighAvailabilityPolicy$1.provide(HighAvailabilityPolicy.java:44)
 at 
org.apache.phoenix.jdbc.HighAvailabilityGroup.connect(HighAvailabilityGroup.java:493)
 at 
org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:149)
 at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:227)
 at java.sql.DriverManager.getConnection(DriverManager.java:664)
 at java.sql.DriverManager.getConnection(DriverManager.java:208)
 at 
org.apache.phoenix.jdbc.FailoverPhoenixConnectionIT.createFailoverConnection(FailoverPhoenixConnectionIT.java:839)
 at 
org.apache.phoenix.jdbc.FailoverPhoenixConnectionIT.testConnectionWhenActiveZKRestarts(FailoverPhoenixConnectionIT.java:289)
 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.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:288)
 at 
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:282)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.lang.Thread.run(Thread.java:748)

{noformat}


> Flakey test FailoverPhoenixConnectionIT
> ---------------------------------------
>
>                 Key: PHOENIX-6846
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6846
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Rushabh Shah
>            Priority: Major
>
> org.apache.phoenix.jdbc.FailoverPhoenixConnectionIT#testConnectionWhenActiveZKRestarts
>  fails consistently on master branch. Stack trace:
> {noformat}
> java.lang.IllegalStateException: Connection to the cluster is closed
>  at 
> org.apache.phoenix.query.ConnectionQueryServicesImpl.throwConnectionClosedException(ConnectionQueryServicesImpl.java:5705)
>  at 
> org.apache.phoenix.query.ConnectionQueryServicesImpl.checkClosed(ConnectionQueryServicesImpl.java:5694)
>  at 
> org.apache.phoenix.query.ConnectionQueryServicesImpl.connect(ConnectionQueryServicesImpl.java:882)
>  at 
> org.apache.phoenix.jdbc.HighAvailabilityGroup.connectToOneCluster(HighAvailabilityGroup.java:596)
>  at 
> org.apache.phoenix.jdbc.HighAvailabilityGroup.connectActive(HighAvailabilityGroup.java:509)
>  at 
> org.apache.phoenix.jdbc.FailoverPhoenixConnection.<init>(FailoverPhoenixConnection.java:112)
>  at 
> org.apache.phoenix.jdbc.HighAvailabilityPolicy$1.provide(HighAvailabilityPolicy.java:44)
>  at 
> org.apache.phoenix.jdbc.HighAvailabilityGroup.connect(HighAvailabilityGroup.java:493)
>  at 
> org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:149)
>  at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:227)
>  at java.sql.DriverManager.getConnection(DriverManager.java:664)
>  at java.sql.DriverManager.getConnection(DriverManager.java:208)
>  at 
> org.apache.phoenix.jdbc.FailoverPhoenixConnectionIT.createFailoverConnection(FailoverPhoenixConnectionIT.java:839)
>  at 
> org.apache.phoenix.jdbc.FailoverPhoenixConnectionIT.testConnectionWhenActiveZKRestarts(FailoverPhoenixConnectionIT.java:289)
>  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.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:288)
>  at 
> org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:282)
>  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>  at java.lang.Thread.run(Thread.java:748)
> {noformat}
> Example build: 
> https://ci-hadoop.apache.org/blue/organizations/jenkins/Phoenix%2FPhoenix-PreCommit-GitHub-PR/detail/PR-1543/4/tests/



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to