ghostly72 opened a new pull request, #15873:
URL: https://github.com/apache/dubbo/pull/15873
Currently, Dubbo’s registry layer writes provider information to a local
cache file, but it does not read that cache when the registry center becomes
unavailable. So, consumers fail to discover providers during temporary registry
outages, even though the information already exists locally.
This PR introduces a fallback mechanism so that consumers can still find
providers using the last known data in the local cache.
Added some code in org.apache.dubbo.registry.support.AbstractRegistry to:
Load provider URLs from the local cache file when the registry cannot be
reached.
Immediately notify registered listeners with cached data so consumers
remain functional.
The fallback is triggered only when the registry is unavailable or not yet
ready.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]