Skip to content

minor optimization for table number scheduler#856

Merged
ti-srebot merged 1 commit into
pingcap:masterfrom
amyangfei:table-number-scheduler
Aug 18, 2020
Merged

minor optimization for table number scheduler#856
ti-srebot merged 1 commit into
pingcap:masterfrom
amyangfei:table-number-scheduler

Conversation

@amyangfei
Copy link
Copy Markdown
Contributor

@amyangfei amyangfei commented Aug 17, 2020

What problem does this PR solve?

When the table count is exactly an integral multiple of capture numbers, the table number based scheduler doesn't make an absolutely even scheduling
such as 4 tables, 2 captures, the scheduling result should be 2, 2

What is changed and how it works?

Use float64 to calculate table tableNumberLimiter

Check List

Tests

  • Unit test
  • Integration test

Release note

  • No release note

@amyangfei amyangfei added the component/scheduler TiCDC inner scheduler component. label Aug 17, 2020
@amyangfei
Copy link
Copy Markdown
Contributor Author

/run-integration-tests

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 17, 2020

Codecov Report

Merging #856 into master will decrease coverage by 0.4691%.
The diff coverage is 100.0000%.

@@               Coverage Diff                @@
##             master       #856        +/-   ##
================================================
- Coverage   33.9865%   33.5173%   -0.4692%     
================================================
  Files            97         97                
  Lines         11278      11048       -230     
================================================
- Hits           3833       3703       -130     
+ Misses         7064       6973        -91     
+ Partials        381        372         -9     

@amyangfei amyangfei added the status/ptal Could you please take a look? label Aug 17, 2020
@overvenus
Copy link
Copy Markdown
Member

/lgtm

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 18, 2020
@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Aug 18, 2020
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Aug 18, 2020
@zier-one
Copy link
Copy Markdown
Contributor

/merge

@ti-srebot
Copy link
Copy Markdown
Contributor

Your auto merge job has been accepted, waiting for:

  • 843

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

/run-all-tests

@ti-srebot ti-srebot merged commit 18dacab into pingcap:master Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/scheduler TiCDC inner scheduler component. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. status/ptal Could you please take a look?

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants