Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.0.1] Services deleted when upgrading to v2 will not be sync to v2 model. #5692

Closed
pixystone opened this issue May 13, 2021 · 0 comments
Closed
Labels
kind/bug Category issues or prs related to bug. version/2.x
Milestone

Comments

@pixystone
Copy link
Contributor

Describe the bug

Services deleted by ServiceController.remove, but still in v2.ServiceManager with instances.

Expected behavior

com.alibaba.nacos.naming.core.Service#destroy need some notification.

.e.g.

        ApplicationUtils.getBean(DoubleWriteEventListener.class)
                .doubleWriteMetadataToV2(this, vDom.isEphemeral());

Like com.alibaba.nacos.naming.core.Service#update dose.

Additional context

Need to do some check for services in com.alibaba.nacos.naming.core.v2.upgrade.doublewrite.execute.AsyncServicesCheckTask.

pixystone added a commit to pixystone/nacos that referenced this issue May 13, 2021
pixystone added a commit to pixystone/nacos that referenced this issue May 13, 2021
pixystone added a commit to pixystone/nacos that referenced this issue May 13, 2021
KomachiSion pushed a commit that referenced this issue May 14, 2021
* [ISSUE #5692] Add double write task sensing removal of v2 service.

* [ISSUE #5692] Add double write task sensing removal of v1 service.

* [ISSUE #5692] Make async checker of services sensing removal of v1 service.
@KomachiSion KomachiSion added version/2.x kind/bug Category issues or prs related to bug. labels May 14, 2021
@KomachiSion KomachiSion added this to the 2.0.2 milestone May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Category issues or prs related to bug. version/2.x
Projects
None yet
Development

No branches or pull requests

2 participants