Indeed. I see that this exception was thrown somewhere near docker restart time. Thank you for response.
> On 20 Sep 2018, at 02:34, Sergey Soldatov <sergey.solda...@gmail.com> wrote: > > That might be a misleading message. Actually, that means that JVM shutdown > has been triggered (so runtime has executed the shutdown hook for the driver > and that's the only place where we set this message) and after that, another > thread was trying to create a new connection. > > Thanks, > Sergey > > On Wed, Sep 19, 2018 at 11:17 AM Batyrshin Alexander <0x62...@gmail.com > <mailto:0x62...@gmail.com>> wrote: > Version: > > Phoenix-4.14.0-HBase-1.4 > > Full trace is: > > java.lang.IllegalStateException: Phoenix driver closed because server is > shutting down > at > org.apache.phoenix.jdbc.PhoenixDriver.throwDriverClosedException(PhoenixDriver.java:290) > at > org.apache.phoenix.jdbc.PhoenixDriver.checkClosed(PhoenixDriver.java:285) > at > org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:220) > at java.sql.DriverManager.getConnection(DriverManager.java:664) > at java.sql.DriverManager.getConnection(DriverManager.java:270) > at > x.persistence.phoenix.ConnectionManager.get(ConnectionManager.scala:12) > at > x.persistence.phoenix.PhoenixDao.$anonfun$count$1(PhoenixDao.scala:58) > at > scala.runtime.java8.JFunction0$mcI$sp.apply(JFunction0$mcI$sp.java:12) > at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:655) > at scala.util.Success.$anonfun$map$1(Try.scala:251) > at scala.util.Success.map(Try.scala:209) > at scala.concurrent.Future.$anonfun$map$1(Future.scala:289) > at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:29) > at > scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:29) > at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > > > > > > On 19 Sep 2018, at 20:13, Josh Elser <els...@apache.org > > <mailto:els...@apache.org>> wrote: > > > > What version of Phoenix are you using? Is this the full stack trace you see > > that touches Phoenix (or HBase) classes? > > > > On 9/19/18 12:42 PM, Batyrshin Alexander wrote: > >> Is there any reason for this exception? Which exactly server is shutting > >> down if we use quorum of zookepers? > >> java.lang.IllegalStateException: Phoenix driver closed because server is > >> shutting down at > >> org.apache.phoenix.jdbc.PhoenixDriver.throwDriverClosedException(PhoenixDriver.java:290) > >> at > >> org.apache.phoenix.jdbc.PhoenixDriver.checkClosed(PhoenixDriver.java:285) > >> at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:220) > >> at java.sql.DriverManager.getConnection(DriverManager.java:664) at > >> java.sql.DriverManager.getConnection(DriverManager.java:270) >