eventmesh icon indicating copy to clipboard operation
eventmesh copied to clipboard

[Bug]Registry nacos plugin implementation according to cluster query information bugs

Open qiaofazhan opened this issue 2 years ago • 9 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Environment

Windows

EventMesh version

master

What happened

The relevant code is as follows:

//method: findEventMeshInfoByCluster List<Instance> instances = namingService.selectInstances(eventMeshName + "-" + key, configuration.eventMeshCluster, Collections.singletonList(clusterName), true);//Notice the second parameter here

//method register namingService.registerInstance(eventMeshName, eventMeshRegisterInfo.getProtocolType() + "-" + NacosConstant.GROUP, instance); //Notice the second parameter here

No information can be queried by cluster

How to reproduce

The relevant code is as follows:

//method: findEventMeshInfoByCluster List<Instance> instances = namingService.selectInstances(eventMeshName + "-" + key, configuration.eventMeshCluster, Collections.singletonList(clusterName), true);//Notice the second parameter here

//method register namingService.registerInstance(eventMeshName, eventMeshRegisterInfo.getProtocolType() + "-" + NacosConstant.GROUP, instance); //Notice the second parameter here

No information can be queried by cluster

Debug logs

No response

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

qiaofazhan avatar Nov 22 '22 06:11 qiaofazhan

So, the bug is:

  1. registry instance
  2. get instance immediately
  3. can not get instance It's right or not? @qiaofazhan

huyuanxin avatar Dec 06 '22 07:12 huyuanxin

您好,邮件已收到,尽快给您回复。

qiaofazhan avatar Dec 06 '22 07:12 qiaofazhan

image You can check whether it is the default cluster name problem

li-xiao-shuang avatar Dec 18 '22 03:12 li-xiao-shuang

@qiaofazhan @huyuanxin Hi~May I ask that has this issue been resolved in the current version?

Pil0tXia avatar Apr 19 '24 03:04 Pil0tXia

您好,邮件已收到,尽快给您回复。

qiaofazhan avatar Apr 19 '24 03:04 qiaofazhan

It has been 90 days since the last activity on this issue. Apache EventMesh values the voices of the community. Please don't hesitate to share your latest insights on this matter at any time, as the community is more than willing to engage in discussions regarding the development and optimization directions of this feature.

If you feel that your issue has been resolved, please feel free to close it. Should you have any additional information to share, you are welcome to reopen this issue.

github-actions[bot] avatar Jul 18 '24 18:07 github-actions[bot]

您好,邮件已收到,尽快给您回复。

qiaofazhan avatar Jul 18 '24 18:07 qiaofazhan