Skip to content

grpc be closed when uninstall service target #807

@qqwx1986

Description

@qqwx1986

there two problems

  1. target connect will close while one target uninstall by method grpcConnectionPool::cleanup(),it's 5s interval check
    I uninstall the service of the current target. Although I refused new grpc request right now ,But I need to finish processing the grpc requests currently being processed before disconnecting

  2. grpc_handle.go function hasTarget compare by pointer(target address) to check target whether exist in route.Table, code main.go method watchBackend will NewTable every time while service refresh,so if one service had three target,if just one target uninstall from service ,other two target also will closed by cleanup() ,i think it need reuse old target connect

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