You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/12/12 08:36:18 UTC

[GitHub] [shardingsphere-elasticjob] TeslaCN opened a new issue, #2162: NPE may occurred in InstanceService.getAvailableJobInstances

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: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere-elasticjob] TeslaCN closed issue #2162: NPE may occurred in InstanceService.getAvailableJobInstances

Posted by GitBox <gi...@apache.org>.
TeslaCN closed issue #2162: NPE may occurred in InstanceService.getAvailableJobInstances
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2162


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org