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 2021/07/19 06:02:12 UTC

[GitHub] [shardingsphere-elasticjob] sdlzhd opened a new issue #1934: ElasticJob cannot be restored when DNS service is down!

sdlzhd opened a new issue #1934:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1934


   ## Bug Report
   
   ### Which version of ElasticJob did you use?
   
   2.1.5
   
   ### Which project did you use? ElasticJob-Lite or ElasticJob-Cloud?
   
   ElasticJob-Lite
   
   ### Expected behavior
   
   ElasticJob is available after DNS to be restored
   
   ### Actual behavior
   
   ElasticJob is down
   
   ### Reason analyze (If you can)
   
   If I use ip to connect to zkp, a `NodeExistsException` will be thrown when the network is disconnected. And ElasticJob will ignore the `NodeExistsException` in `RegExceptionHandler` class.
   
   But if I use domain to connect to zkp, When the network is restored, but the DNS server has not been restored, an exception IllegalArgumentException(A HostProvider may not be empty) will be thrown. And 'RegExceptionHandler' will throw the `RegException(IllegalArgumentException)`. ElasticJob can no longer resume.
   
   ### Steps to reproduce the behavior.
   
   #### use ip
   
   ```xml
   <!-- Ignore other parameters -->
   <reg:zookeeper id="regCenter" server-lists="192.168.1.100" />
   ```
   
   1. start application
   2. disable network
   3. resume application
   
   #### use domain
   
   > hosts
   > 192.168.1.100 zkp.demo.io
   
   ```xml
   <!-- Ignore other parameters -->
   <reg:zookeeper id="regCenter" server-lists="zkp.demo.io" />
   ```
   
   1. start application
   2. disable network
   3. delete hosts -> `192.168.1.100 zkp.demo.io`
   4. resume application
   


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



[GitHub] [shardingsphere-elasticjob] sdlzhd commented on issue #1934: ElasticJob cannot be restored when DNS service is down!

Posted by GitBox <gi...@apache.org>.
sdlzhd commented on issue #1934:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1934#issuecomment-885335229


   I mean if the network is recovered, the DNS has not fully recovered(May take 15 second), which will cause the ElasticJob to offline, and Thread is dead,  the ElasticJob will never go online.


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



[GitHub] [shardingsphere-elasticjob] TeslaCN commented on issue #1934: ElasticJob cannot be restored when DNS service is down!

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #1934:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1934#issuecomment-885008132


   Hi @sdlzhd 
   DNS down means cannot get the IP of registry center. How to resume?


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