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

kv-client: ignore commit log without prewrite before initialized #448

Merged
merged 1 commit into from
Apr 10, 2020

Conversation

amyangfei
Copy link
Contributor

What problem does this PR solve?

In the incremental scan procedure, TiKV may send commit event without a corresponding prewrite event.

What is changed and how it works?

We can just ignore this commit event, but don't check whether the committed log with same start-ts and key is really received, because the check may cost too much memory to store start-ts-key pair of all committed events.

Check List

Tests

  • Unit test
  • Integration test

@amyangfei amyangfei added the component/kv-client TiKV kv log client component. label Apr 9, 2020
@amyangfei
Copy link
Contributor Author

/run-integration-tests

1 similar comment
@amyangfei
Copy link
Contributor Author

/run-integration-tests

@codecov-io
Copy link

Codecov Report

Merging #448 into master will decrease coverage by 0.0933%.
The diff coverage is 22.2500%.

@@               Coverage Diff                @@
##             master       #448        +/-   ##
================================================
- Coverage   29.2417%   29.1483%   -0.0934%     
================================================
  Files            59         58         -1     
  Lines          5328       5695       +367     
================================================
+ Hits           1558       1660       +102     
- Misses         3629       3923       +294     
+ Partials        141        112        -29     

@amyangfei amyangfei added the status/ptal Could you please take a look? label Apr 10, 2020
Copy link
Contributor

@zier-one zier-one left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zier-one zier-one added LGT1 and removed status/ptal Could you please take a look? labels Apr 10, 2020
@amyangfei amyangfei merged commit c2d8b1b into pingcap:master Apr 10, 2020
@amyangfei amyangfei deleted the no-paired-commit-before-init branch April 10, 2020 03:01
5kbpers pushed a commit to 5kbpers/ticdc that referenced this pull request Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/kv-client TiKV kv log client component.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants