apache / apache/eventmesh

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

Open
#2,237 23 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
1.8k
Forks
658
Avg merge
11h 29m
Merged PRs (30d)
52

Description

### Search before asking

- [X] I had searched in the [issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no similar issues.

### Environment

Windows

### EventMesh version

master

### What happened

The relevant code is as follows:

//method: findEventMeshInfoByCluster
List 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 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!

Contributor guide

Open the contributing guide

Research direction

Locate the Nacos registry plugin implementations of findEventMeshInfoByCluster and register, then compare the cluster and group arguments shown in the issue. Reproduce the cluster lookup on Windows with the master version and verify that instances registered by register can be returned by findEventMeshInfoByCluster.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.