liukun321 opened a new issue, #4298:
URL: https://github.com/apache/shenyu/issues/4298
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
PENDING_SYNC was not set when checking upstream successfully, resulting in
unable to update the handler of selector
### Expected Behavior
private void check(final String selectorId, final List<CommonUpstream>
upstreamList) {
List<CommonUpstream> successList =
Lists.newArrayListWithCapacity(upstreamList.size());
for (CommonUpstream commonUpstream : upstreamList) {
final boolean pass =
UpstreamCheckUtils.checkUrl(commonUpstream.getUpstreamUrl());
if (pass) {
if (!commonUpstream.isStatus()) {
commonUpstream.setTimestamp(System.currentTimeMillis());
commonUpstream.setStatus(true);
// add PENDING_SYNC
PENDING_SYNC.add(commonUpstream.hashCode());
LOG.info("UpstreamCacheManager check success the url:
{}, host: {} ", commonUpstream.getUpstreamUrl(),
commonUpstream.getUpstreamHost());
}
successList.add(commonUpstream);
................
### Steps To Reproduce
_No response_
### Environment
```markdown
ShenYu version(s):2.5.0
```
### Debug logs
_No response_
### Anything else?
_No response_
--
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]