Skip to content

Dubbo优雅停机问题 #5630

@szd1993

Description

@szd1993

DubboBootstrapApplicationListener通过监听spring容器关闭事件ContextClosedEvent,将provider从注册中心移除,并关闭应用
是不是存在以下问题:
1.当ContextClosedEvent触发时,spring容器已经销毁,此时如果外部流量进来、以及内部依旧在运行的线程,会因为bean找不到,出现异常

是否考虑先执行从注册中心移除provider的操作(在spring容器启动时,放入钩子),然后再销毁spring容器

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions