Description
Describe the bug
When using the deregisterInstance method to remove one of multiple instances registered by batchRegisterInstance, all instances registered by batchRegisterInstance will be removed.
Expected behavior
When you use the deregisterInstance method to deregister a specific instance from multiple instances registered through batchRegisterInstance, this will only remove that specific instance, and all other instances will remain.
Actually behavior
When using the deregisterInstance method to remove one of multiple instances registered by batchRegisterInstance, all instances registered by batchRegisterInstance will be removed.
How to Reproduce
Steps to reproduce the behavior:
- batchRegisterInstance("demo1", "group", instances);
- naming.getAllInstances("demo1", "group", false);
- deregisterInstance("demo1", "group", instance1);
- naming.getAllInstances("demo1", "group", false);
- you will find that the instance list is empty.
Desktop (please complete the following information):
- OS: [MAC M1]
- Version [nacos-server 2.2.4, nacos-client 2.2.4]
- Module [naming]
- SDK [original]