Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When failover is not configure #55

Open
carl10086 opened this issue Jul 9, 2019 · 1 comment
Open

When failover is not configure #55

carl10086 opened this issue Jul 9, 2019 · 1 comment

Comments

@carl10086
Copy link

carl10086 commented Jul 9, 2019

类:com.sia.scheduler.http.impl.OnlineListenableFutureCallback 代码126 行 .

 private boolean onFailure(JobMTask onlineTask, Throwable throwable) {
        boolean isCountDown;
        switch (FailoverEnum.getByValue(onlineTask.getFailover().toLowerCase())) {
            case IGNORE:

onlineTask.getFailover() 为null 的时候转小写出 NPE 了.

@Li-JH
Copy link
Contributor

Li-JH commented Jul 10, 2019

failover策略是必填项,onlineTask中总会对应一个failover值。你的场景中onlineTask.getFailover() 为null,说明这个onlineTask配置不正确,但是现在不能确定是配置引起的还是程序内部问题,能简要说一下你在对应job中配置的task的具体内容吗?你在我们的开源社区群中吗,可以加群讨论,方便快速解决问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants