Technoboy- opened a new pull request #1952: URL: https://github.com/apache/shardingsphere-elasticjob/pull/1952
Fixes #1950. I think the root reason is that: https://github.com/apache/shardingsphere-elasticjob/blob/054571c6d7caca455418e0f83056a0182315bd75/elasticjob-lite/elasticjob-lite-core/src/main/java/org/apache/shardingsphere/elasticjob/lite/internal/instance/InstanceService.java#L69-L78 jobNodeStorage.getJobNodeChildrenKeys(InstanceNode.ROOT) and jobNodeStorage.getJobNodeData(instanceNode.getInstancePath(each)) is not an atomic op. jobNodeStorage.getJobNodeData(instanceNode.getInstancePath(each)) may return null then for some others delete op or network error. Changes proposed in this pull request: - Add null check for JobInstance. - Use Optional map instead of Optional.isPresent. -- 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]
