TeslaCN opened a new issue, #2133:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2133

   ## Bug Report
   
   ### Which version of ElasticJob did you use?
   
   76199ab2e48875eddf92ef34c6126599869d2205
   
   ### Expected behavior
   
   All tests passed stably.
   
   ### Actual behavior
   
   ```
   Running 
org.apache.shardingsphere.elasticjob.lite.integrate.enable.OneOffEnabledJobIntegrateTest
   [ERROR] 2022-10-16 17:17:18,595 --164685539174708_test_job_Worker-1-- 
[org.quartz.core.JobRunShell] Job DEFAULT.164685539174708_test_job threw an 
unhandled Exception:  
   org.apache.shardingsphere.elasticjob.reg.exception.RegException: 
java.lang.IllegalStateException: Expected state [STARTED] was [LATENT]
        at 
org.apache.shardingsphere.elasticjob.reg.exception.RegExceptionHandler.handleException(RegExceptionHandler.java:55)
        at 
org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperRegistryCenter.isExisted(ZookeeperRegistryCenter.java:213)
        at 
org.apache.shardingsphere.elasticjob.lite.internal.storage.JobNodeStorage.isJobNodeExisted(JobNodeStorage.java:56)
        at 
org.apache.shardingsphere.elasticjob.lite.internal.sharding.ExecutionService.getMisfiredJobItems(ExecutionService.java:167)
        at 
org.apache.shardingsphere.elasticjob.lite.internal.schedule.LiteJobFacade.isExecuteMisfired(LiteJobFacade.java:136)
        at 
org.apache.shardingsphere.elasticjob.executor.ElasticJobExecutor.execute(ElasticJobExecutor.java:101)
        at 
org.apache.shardingsphere.elasticjob.lite.internal.schedule.LiteJob.execute(LiteJob.java:35)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at 
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
   Caused by: java.lang.IllegalStateException: Expected state [STARTED] was 
[LATENT]
        at 
org.apache.curator.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:823)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.checkState(CuratorFrameworkImpl.java:423)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.checkExists(CuratorFrameworkImpl.java:450)
        at 
org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperRegistryCenter.isExisted(ZookeeperRegistryCenter.java:209)
        ... 7 common frames omitted
   [ERROR] 2022-10-16 17:17:18,596 --164685539174708_test_job_Worker-1-- 
[org.quartz.core.ErrorLogger] Job (DEFAULT.164685539174708_test_job threw an 
exception. 
   org.quartz.SchedulerException: Job threw an unhandled exception.
        at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
        at 
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
   Caused by: org.apache.shardingsphere.elasticjob.reg.exception.RegException: 
java.lang.IllegalStateException: Expected state [STARTED] was [LATENT]
        at 
org.apache.shardingsphere.elasticjob.reg.exception.RegExceptionHandler.handleException(RegExceptionHandler.java:55)
        at 
org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperRegistryCenter.isExisted(ZookeeperRegistryCenter.java:213)
        at 
org.apache.shardingsphere.elasticjob.lite.internal.storage.JobNodeStorage.isJobNodeExisted(JobNodeStorage.java:56)
        at 
org.apache.shardingsphere.elasticjob.lite.internal.sharding.ExecutionService.getMisfiredJobItems(ExecutionService.java:167)
        at 
org.apache.shardingsphere.elasticjob.lite.internal.schedule.LiteJobFacade.isExecuteMisfired(LiteJobFacade.java:136)
        at 
org.apache.shardingsphere.elasticjob.executor.ElasticJobExecutor.execute(ElasticJobExecutor.java:101)
        at 
org.apache.shardingsphere.elasticjob.lite.internal.schedule.LiteJob.execute(LiteJob.java:35)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        ... 1 common frames omitted
   Caused by: java.lang.IllegalStateException: Expected state [STARTED] was 
[LATENT]
        at 
org.apache.curator.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:823)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.checkState(CuratorFrameworkImpl.java:423)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.checkExists(CuratorFrameworkImpl.java:450)
        at 
org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperRegistryCenter.isExisted(ZookeeperRegistryCenter.java:209)
        ... 7 common frames omitted
   ```
   
   ### Steps to reproduce the behavior.
   
   ```
   ./mvnw clean install -T1C
   ```
   


-- 
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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to