Skip to content

Service removal dose not clean the ClientServiceIndex #9277

Closed

Description

@pixystone

Describe the bug

ServiceController.remove -> ServiceMetadataProcessor#deleteServiceMetadata dose not clean the ClientServiceIndexesManager.publisherIndexes keys.

image

Expected behavior
ClientServiceIndexesManager clean the empty service key when there is no instances anymore.

Actually behavior
A clear and concise description of what you actually to happen.

How to Reproduce

namingService.registerInstance(serviceName, "127.0.0.1", 8088);
namingService.deregisterInstance(serviceName, "127.0.0.1", 8088);
namingMaintainService.deleteService(serviceName);

Desktop (please complete the following information):

  • OS: [e.g. Centos]
  • Version [e.g. nacos-server 1.3.1, nacos-client 1.3.1]
  • Module [e.g. naming/config]
  • SDK [e.g. original, spring-cloud-alibaba-nacos, dubbo]

Additional context
Add any other context about the problem here.

Activity

  1. added a commit that references this issue on Oct 9, 2022
  2. added a commit that references this issue on Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions