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

cmd: support pause/resume/remove changefeed #546

Merged
merged 10 commits into from
May 11, 2020

Conversation

overvenus
Copy link
Member

What problem does this PR solve?

  • Support pause/resume/remove changefeed via cdc cli.
  • Add status address to capture info.

Cc https://github.com/pingcap/ticdc/issues/542

Check List

Tests

  • Integration test

Code changes

  • Has exported variable/fields change

Related changes

  • Need to cherry-pick to the release branch

Release note

  • Support pause/resume/remove changefeed via cdc cli.

Signed-off-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
@overvenus
Copy link
Member Author

/run-integration-tests

Signed-off-by: Neil Shen <overvenus@gmail.com>
@overvenus
Copy link
Member Author

/run-integration-tests

go func() {
err := s.statusServer.ListenAndServe()
ln, err := net.Listen("tcp", addr)
Copy link
Contributor

Choose a reason for hiding this comment

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

move this line out of this goroutine? we can avoid to using error channel

Signed-off-by: Neil Shen <overvenus@gmail.com>
@overvenus overvenus requested a review from amyangfei May 9, 2020 07:51
@overvenus
Copy link
Member Author

/run-integration-tests

PTAL, thanks

@overvenus overvenus added the status/ptal Could you please take a look? label May 9, 2020
cmd/server.go Outdated Show resolved Hide resolved
Signed-off-by: Neil Shen <overvenus@gmail.com>
@overvenus
Copy link
Member Author

/run-integration-tests

overvenus referenced this pull request in overvenus/tiup-cluster May 9, 2020
CDC is going to replace `status-add` with `addr` and `advertise-addr` in https://github.com/pingcap/ticdc/pull/546.
Signed-off-by: Neil Shen <overvenus@gmail.com>
@overvenus
Copy link
Member Author

/run-integration-tests

@codecov-io
Copy link

Codecov Report

Merging #546 into master will increase coverage by 0.3905%.
The diff coverage is 58.1395%.

@@               Coverage Diff                @@
##             master       #546        +/-   ##
================================================
+ Coverage   31.4302%   31.8208%   +0.3905%     
================================================
  Files            70         70                
  Lines          6831       6854        +23     
================================================
+ Hits           2147       2181        +34     
+ Misses         4525       4512        -13     
- Partials        159        161         +2     

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 May 9, 2020
Signed-off-by: Neil Shen <overvenus@gmail.com>
@overvenus
Copy link
Member Author

/run-integration-tests

Copy link
Contributor

@amyangfei amyangfei left a comment

Choose a reason for hiding this comment

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

LGTM

@amyangfei amyangfei added LGT2 subject/usability Denotes an issue or pull request is related to usability. and removed LGT1 labels May 10, 2020
@amyangfei
Copy link
Contributor

btw, as this PR changes status-addr to addr, we also need to update parameter in tipocket and cdc document

@overvenus overvenus merged commit ce12963 into pingcap:master May 11, 2020
@overvenus overvenus deleted the cli/manage-changefeed branch May 11, 2020 03:55
5kbpers pushed a commit to 5kbpers/ticdc that referenced this pull request Aug 24, 2020
* cdc, cmd: add status address to capture info

Signed-off-by: Neil Shen <overvenus@gmail.com>

* tests: adjust start_cdc_server

Signed-off-by: Neil Shen <overvenus@gmail.com>

* cmd: support pause/resume/remove changefeed

Signed-off-by: Neil Shen <overvenus@gmail.com>

* fix test

Signed-off-by: Neil Shen <overvenus@gmail.com>

* address comments

Signed-off-by: Neil Shen <overvenus@gmail.com>

* cdc, cmd: replace status address with address and advertise address

Signed-off-by: Neil Shen <overvenus@gmail.com>

* correct parameter

Signed-off-by: Neil Shen <overvenus@gmail.com>

* use address in PD

Signed-off-by: Neil Shen <overvenus@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subject/usability Denotes an issue or pull request is related to usability.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants