This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob.git
The following commit(s) were added to refs/heads/master by this push:
new 9557d60 Skip time different checking when maxTimeDiffSeconds is
negative (#1541)
9557d60 is described below
commit 9557d605988d29fa82fad37ec921de97f4ef77aa
Author: 吴伟杰 <[email protected]>
AuthorDate: Sat Oct 3 11:06:55 2020 +0800
Skip time different checking when maxTimeDiffSeconds is negative (#1541)
---
.../elasticjob/lite/internal/config/ConfigurationService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/elasticjob-lite/elasticjob-lite-core/src/main/java/org/apache/shardingsphere/elasticjob/lite/internal/config/ConfigurationService.java
b/elasticjob-lite/elasticjob-lite-core/src/main/java/org/apache/shardingsphere/elasticjob/lite/internal/config/ConfigurationService.java
index 10ae2f4..c5fa32b 100644
---
a/elasticjob-lite/elasticjob-lite-core/src/main/java/org/apache/shardingsphere/elasticjob/lite/internal/config/ConfigurationService.java
+++
b/elasticjob-lite/elasticjob-lite-core/src/main/java/org/apache/shardingsphere/elasticjob/lite/internal/config/ConfigurationService.java
@@ -94,7 +94,7 @@ public final class ConfigurationService {
*/
public void checkMaxTimeDiffSecondsTolerable() throws
JobExecutionEnvironmentException {
int maxTimeDiffSeconds = load(true).getMaxTimeDiffSeconds();
- if (-1 == maxTimeDiffSeconds) {
+ if (0 > maxTimeDiffSeconds) {
return;
}
long timeDiff = Math.abs(timeService.getCurrentMillis() -
jobNodeStorage.getRegistryCenterTime());