dengliming commented on a change in pull request #1885:
URL: https://github.com/apache/incubator-shenyu/pull/1885#discussion_r683990822
##########
File path:
shenyu-common/src/main/java/org/apache/shenyu/common/healthcheck/HealthCheckTask.java
##########
@@ -276,7 +276,9 @@ public void triggerRemoveAll(final String selectorId) {
}
SelectorData selectorData = selectorCache.get(selectorId);
- log.info("[Health Check] Selector [{}] all upstream as removed.",
selectorData.getName());
+ if (selectorData != null) {
+ log.info("[Health Check] Selector [{}] all upstream as removed.",
selectorData.getName());
+ }
selectorCache.remove(selectorId);
Review comment:
```suggestion
if (selectorData != null) {
selectorCache.remove(selectorId);
log.info("[Health Check] Selector [{}] all upstream as
removed.", selectorData.getName());
}
```
--
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]