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

[TiCDC] (unreleased feature) High inter-node latency causes ErrProcessorDuplicateOperations #4769

Closed
liuzix opened this issue Mar 4, 2022 · 0 comments · Fixed by #4768
Closed
Assignees
Labels
affects-5.4 area/ticdc Issues or PRs related to TiCDC. bug-from-internal-test Bugs found by internal testing. component/scheduler TiCDC inner scheduler component. severity/major type/bug The issue is confirmed as a bug.

Comments

@liuzix
Copy link
Contributor

liuzix commented Mar 4, 2022

  • When the new scheduler is enabled, high inter-node latency can cause ErrProcessorDuplicateOperations.
  • Scenario: 100K tables with 8 TiCDC nodes. Injects a latency of 2000ms jitter 10ms between TiCDC nodes. Then restarts all TiCDC nodes all at once.
[
  {
    "id": "test-1",
    "summary": {
      "state": "error",
      "tso": 431564666934132811,
      "checkpoint": "2022-03-03 14:22:34.894",
      "error": {
        "addr": "new-sched-test-cdc-3.liuzixiong.tispace:8300",
        "code": "CDC:ErrProcessorDuplicateOperations",
        "message": "[CDC:ErrProcessorDuplicateOperations]table processor duplicate operation, table-id: 26194"
      }
    }
  }
]
  • Root cause: Processor may send Sync to Owner to tell the owner about the processor's internal state. However, the internal state can be updated by a in-flight owner's dispatch command, making the owner's knowledge of the processor' state inconsistent.
  • Severity: (1) This problem rarely occurs if the latency is low (sub 100ms) (2) This problem pauses the changefeed, but the changefeed can retry and will eventually succeed if the latency recovers to normal. (3) This problem will not cause data corruption.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-5.4 area/ticdc Issues or PRs related to TiCDC. bug-from-internal-test Bugs found by internal testing. component/scheduler TiCDC inner scheduler component. severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants