You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/11/28 06:16:39 UTC

[GitHub] [shardingsphere-elasticjob] x92811x commented on issue #2137: elasticjob-lite will Close the zk connection after task down

x92811x commented on issue #2137:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2137#issuecomment-1328596766

   > Could you help us to reproduce this issue? I've checked the code and found no production code invoke close. ![image](https://user-images.githubusercontent.com/20503072/197724647-edfa318b-fbbc-4dce-891f-104155db2c66.png)
   
   1.The timer has no task,throwing exception as well
   2. zk status is effective,client error is reported
   
   [root@hzhlht bin]# ./zkServer.sh status
   ZooKeeper JMX enabled by default
   Using config: /home/apache-zookeeper-3.6.2-bin/bin/../conf/zoo.cfg
   Client port found: 2181. Client address: localhost. Client SSL: false.
   Mode: standalone
   
   [TraceId:] 2022-11-28 13:47:00,020 [ERROR] [JiaoYiCenterClientQyscTimer_Worker-1] [org.quartz.core.ErrorLogger] - Job (DEFAULT.JiaoYiCenterClientQyscTimer threw an exception.
   org.quartz.SchedulerException: Job threw an unhandled exception.
   	at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz-2.3.2.jar:?]
   	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.3.2.jar:?]
   Caused by: org.apache.shardingsphere.elasticjob.reg.exception.RegException: java.lang.IllegalStateException: Expected state [STARTED] was [STOPPED]
   	at org.apache.shardingsphere.elasticjob.reg.exception.RegExceptionHandler.handleException(RegExceptionHandler.java:48) ~[elasticjob-registry-center-3.0.0.jar:3.0.0]
   	at org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperRegistryCenter.getDirectly(ZookeeperRegistryCenter.java:162) ~[elasticjob-registry-center-3.0.0.jar:3.0.0]
   	at org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperRegistryCenter.get(ZookeeperRegistryCenter.java:143) ~[elasticjob-registry-center-3.0.0.jar:3.0.0]
   	at org.apache.shardingsphere.elasticjob.lite.internal.storage.JobNodeStorage.getJobNodeData(JobNodeStorage.java:77) ~[elasticjob-lite-core-3.0.0.jar:3.0.0]
   	at org.apache.shardingsphere.elasticjob.lite.internal.config.ConfigurationService.load(ConfigurationService.java:52) ~[elasticjob-lite-core-3.0.0.jar:3.0.0]
   	at org.apache.shardingsphere.elasticjob.lite.internal.schedule.LiteJobFacade.loadJobConfiguration(LiteJobFacade.java:76) ~[elasticjob-lite-core-3.0.0.jar:3.0.0]
   	at org.apache.shardingsphere.elasticjob.executor.ElasticJobExecutor.execute(ElasticJobExecutor.java:77) ~[elasticjob-executor-kernel-3.0.0.jar:3.0.0]
   	at org.apache.shardingsphere.elasticjob.lite.internal.schedule.LiteJob.execute(LiteJob.java:35) ~[elasticjob-lite-core-3.0.0.jar:3.0.0]
   	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ~[quartz-2.3.2.jar:?]
   	... 1 more
   Caused by: java.lang.IllegalStateException: Expected state [STARTED] was [STOPPED]
   	at org.apache.curator.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:823) ~[curator-client-5.1.0.jar:?]
   	at org.apache.curator.framework.imps.CuratorFrameworkImpl.checkState(CuratorFrameworkImpl.java:423) ~[curator-framework-5.1.0.jar:5.1.0]
   	at org.apache.curator.framework.imps.CuratorFrameworkImpl.getData(CuratorFrameworkImpl.java:457) ~[curator-framework-5.1.0.jar:5.1.0]
   	at org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperRegistryCenter.getDirectly(ZookeeperRegistryCenter.java:158) ~[elasticjob-registry-center-3.0.0.jar:3.0.0]
   	at org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperRegistryCenter.get(ZookeeperRegistryCenter.java:143) ~[elasticjob-registry-center-3.0.0.jar:3.0.0]
   	at org.apache.shardingsphere.elasticjob.lite.internal.storage.JobNodeStorage.getJobNodeData(JobNodeStorage.java:77) ~[elasticjob-lite-core-3.0.0.jar:3.0.0]
   	at org.apache.shardingsphere.elasticjob.lite.internal.config.ConfigurationService.load(ConfigurationService.java:52) ~[elasticjob-lite-core-3.0.0.jar:3.0.0]
   	at org.apache.shardingsphere.elasticjob.lite.internal.schedule.LiteJobFacade.loadJobConfiguration(LiteJobFacade.java:76) ~[elasticjob-lite-core-3.0.0.jar:3.0.0]
   	at org.apache.shardingsphere.elasticjob.executor.ElasticJobExecutor.execute(ElasticJobExecutor.java:77) ~[elasticjob-executor-kernel-3.0.0.jar:3.0.0]
   	at org.apache.shardingsphere.elasticjob.lite.internal.schedule.LiteJob.execute(LiteJob.java:35) ~[elasticjob-lite-core-3.0.0.jar:3.0.0]
   	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ~[quartz-2.3.2.jar:?]
   	... 1 more
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org