Skip to content

[BUG] Follower shouldn't forward non-query statement to master repeatedly #5161

@924060929

Description

@924060929

Describe the bug
In this case: Follower forward a insert into statement to Master, if network interrupted, follower will retry send insert into statement in MasterOpExecutor#forward, though Master could insert succes at first time, this will cause the data repeat 2 times.

So, wo can retry forward if and only if statement is QueryStatement.

To Reproduce
Add some breakpoint in FrontendService#forward, wait response and then manual throw TTransportException

Expected behavior
Insert into statement execute success multi times

Screenshots
None

Desktop (please complete the following information):
None

Smartphone (please complete the following information):
None

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions