pingcap / tipocket

A toolkit for testing TiDB
https://github.com/pingcap/tipocket
Apache License 2.0
140 stars 71 forks source link

fix cdc-bank eventual consistency issue. #409

Closed 3AceShowHand closed 3 years ago

3AceShowHand commented 3 years ago

What problem does this PR solve?

Since TiCDC is built on the eventual consistency model, cdc-bank test case may failed due to sync latency, try to fix it.

What is changed and how does it work?

Check List

Tests

Code changes

Side effects

Related changes

Does this PR introduce a user-facing change?:

NONE

3AceShowHand commented 3 years ago

The latest following the assumption that "All goroutine can get expect sum at least once".

This assumption is quite weak, for a buggy TiCDC, it may meet the assumption luckily.

It's hard for me to figure out the condition which can guarantee the correctness - - ····