tiflow icon indicating copy to clipboard operation
tiflow copied to clipboard

update of changefeed configiration changefeed-error-stuck-duration not working

Open fubinzh opened this issue 9 months ago • 5 comments

What did you do?

  1. creaet an kafka changefeed with default configuration (changefeed-error-stuck-duration default 30m)
  2. pause and update changefeed, set changefeed-error-stuck-duration to 90m
  3. resume changefed
  4. Inject network partition between cdc and kafka for 60m

What did you expect to see?

CDC should be able to tolerate network partition between cdc and kafka for 90m, before that CDC changefeed should not be in failed state.

What did you see instead?

CDC changefeed in failed state after 30m. image img_v3_02a9_30a1b0ad-2ddb-4312-a945-f6d39177706g

Versions of the cluster

master

fubinzh avatar Apr 28 '24 04:04 fubinzh

/severity moderate

fubinzh avatar Apr 28 '24 04:04 fubinzh

The root cause of the issue is that the feedStateManager.changefeedErrorStuckDuration is set at the time of a changefeed's creation and remains unchanged when the changefeed is updated. A possible solution is to set the feedStateManager.changefeedErrorStuckDuration to the latest one store in changefeedInfo in every feedStateManager.TiCK call.

asddongmen avatar Apr 29 '24 06:04 asddongmen

/assign @wk989898

asddongmen avatar May 07 '24 06:05 asddongmen

@asddongmen: GitHub didn't allow me to assign the following users: wk989898.

Note that only pingcap members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. For more information please see the contributor guide

In response to this:

/assign @wk989898

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

ti-chi-bot[bot] avatar May 07 '24 06:05 ti-chi-bot[bot]

Get

wk989898 avatar May 07 '24 07:05 wk989898