fix(local-infra): 修复 Nacos 服务缺席误判 - #20
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
Nacos v3 在服务尚未注册时,实例列表管理 API 返回特定 404。原脚本使用
--fail-with-body,会在读取响应语义前直接退出,把正常的“零实例”状态误报为 Nacos 服务端故障,并且无法继续列出其余服务。修改
WORTHIT_LOCAL@@<service> is not found响应,并显示为0 healthy instance(s) (not registered)services是快照,四服务就绪仍由verify.sh和真实链路阻塞验证
bash scripts/tests/nacos-config-service-list-test.sh:通过bash -n:通过git diff --check:通过边界