Giter Site home page Giter Site logo

Comments (5)

terrymanu avatar terrymanu commented on May 7, 2024

目前quartz设定的是用1个线程池
result.put("org.quartz.threadPool.threadCount", "1");
代码在JobScheduler, 162行
作业不会同时启动,如果上个作业未完成下个作业不会启动,只是会记录misfire。
这样会否存在你说的stackOverFlowException的可能

from shardingsphere-elasticjob.

duanbin avatar duanbin commented on May 7, 2024

我看代码misfire应该是分片维度的,不是调度批次维度的,如果2台机器【1,2】,【3,4】,第一次调度后【1,2】数据少执行较快,【3,4】数据较多执行较慢,达到第二次调度时间时可能上次【3,4】还没执行完,这时候第二次调度的时候【1,2】会继续运行,但是【3,4】设置了misfire

from shardingsphere-elasticjob.

terrymanu avatar terrymanu commented on May 7, 2024

是的,是担心一个分片执行不完整个下次作业都不能执行。如果想讨论misfire的事情,可以另开启一个issue

from shardingsphere-elasticjob.

1594433168 avatar 1594433168 commented on May 7, 2024

while (executionService.hasRunningItems()) {
log.debug("Elastic job: sleep short time until other job completed.");
BlockUtils.waitingShortTime();
}
假设上一个job,因为ConnectionLoss异常,调用jobFacade.registerJobCompleted失败,导致没有清空sharding/running下的临时节点,但因为不会会话超时,所以临时节点一直存在,那么下一个job将会在这个while中死循环

from shardingsphere-elasticjob.

terrymanu avatar terrymanu commented on May 7, 2024

Expired

from shardingsphere-elasticjob.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.