Open sdlzhd opened 3 years ago
Hi @sdlzhd DNS down means cannot get the IP of registry center. How to resume?
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.
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 theNodeExistsException
inRegExceptionHandler
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
use domain
192.168.1.100 zkp.demo.io