TeslaCN opened a new issue, #2162:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2162

   ## Bug Report
   
   ### Which version of ElasticJob did you use?
   
   3.0.2
   
   ### Which project did you use? ElasticJob-Lite or ElasticJob-Cloud?
   
   ElasticJob-Lite
   
   ### Expected behavior
   
   No NPE occur.
   
   ### Actual behavior
   
   ```
   java.lang.NullPointerException: null
    at java.io.StringReader.<init>(StringReader.java:50)
    at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:56)
    at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:457)
    at 
org.apache.shardingsphere.elasticjob.infra.yaml.YamlEngine.unmarshal(YamlEngine.java:50)
    at 
org.apache.shardingsphere.elasticjob.lite.internal.instance.InstanceService.getAvailableJobInstances(InstanceService.java:72)
   ```
   
   ### Reason analyze (If you can)
   
   The current logic in `getAvailableJobInstances` is not atomic. The instance 
node may be removed after `getJobNodeChildrenKeys`.
   
   


-- 
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]

Reply via email to