apache / shardingsphere-elasticjob

Distributed scheduled job
Apache License 2.0
8.15k stars 3.29k forks source link

If the timeout parameter are set to 0L,then the thread executing some sharding may wait for Long.maxvalue. #1879

Open kaihekaihe opened 3 years ago

kaihekaihe commented 3 years ago

Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of ElasticJob did you use?

Which project did you use? ElasticJob-Lite or ElasticJob-Cloud?

Expected behavior

If the timeout parameter are set to 0L, the thread executing some sharding wait for 0L.

Actual behavior

If the timeout parameter are set to 0L,then the thread executing some sharding may wait for Long.maxvalue. It is diffcult for users to find the cause why the thread is halted

Reason analyze (If you can)

Steps to reproduce the behavior.

Example codes for reproduce this issue (such as a github link).

TeslaCN commented 3 years ago

Hi @kaihekaihe Do you mean the timeout of DistributeOnceElasticJobListener?

kaihekaihe commented 3 years ago

startedTimeoutMilliseconds and compltedTimeoutMilliseconds in class AbstractDistributeOnceElasticJobListener