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

capture: fix incorrect session aliveness detection (#1237) #1240

Merged

Conversation

ti-srebot
Copy link
Contributor

cherry-pick #1237 to release-4.0


What problem does this PR solve?

Fix https://github.com/pingcap/ticdc/issues/1234

What is changed and how it works?

This is part 1 of #1234

  • fix incorrect session aliveness detection by querying lease TTL
  • more observations will be added in another PR

Check List

Tests

  • Unit test
  • Integration test

Release note

  • Fix a bug that cdc server could exit unexpected when meeting ErrTaskStatusNotExists and the capture session is disconnected at the same time.

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor Author

/run-all-tests

@ti-srebot ti-srebot added type/bugfix This PR fixes a bug. status/ptal Could you please take a look? type/4.0-cherry-pick labels Dec 28, 2020
@ti-srebot ti-srebot added this to the v4.0.10 milestone Dec 28, 2020
@amyangfei amyangfei changed the base branch from release-4.0 to release-4.0-pending December 28, 2020 02:48
@codecov-io
Copy link

Codecov Report

Merging #1240 (23d7aaa) into release-4.0-pending (6b7fb14) will increase coverage by 0.2869%.
The diff coverage is 33.3333%.

@@                     Coverage Diff                     @@
##           release-4.0-pending      #1240        +/-   ##
===========================================================
+ Coverage              45.9675%   46.2544%   +0.2869%     
===========================================================
  Files                      112        112                
  Lines                    11767      11774         +7     
===========================================================
+ Hits                      5409       5446        +37     
+ Misses                    5747       5711        -36     
- Partials                   611        617         +6     

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Dec 29, 2020
@amyangfei
Copy link
Contributor

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Dec 29, 2020
@ti-srebot
Copy link
Contributor Author

/run-all-tests

@ti-srebot ti-srebot merged commit 65c13b3 into pingcap:release-4.0-pending Dec 29, 2020
amyangfei pushed a commit that referenced this pull request Jan 19, 2021
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1. status/ptal Could you please take a look? type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants