Skip to content

import: call sink.fail() when failed to send message by grpc#17834

Merged
ti-chi-bot[bot] merged 8 commits intotikv:masterfrom
joccau:fix-fail-sink
Nov 19, 2024
Merged

import: call sink.fail() when failed to send message by grpc#17834
ti-chi-bot[bot] merged 8 commits intotikv:masterfrom
joccau:fix-fail-sink

Conversation

@joccau
Copy link
Contributor

@joccau joccau commented Nov 15, 2024

What is changed and how it works?

Issue Number: Close #17830

What's Changed:

  • it should call sink.fail() not sink.close() when failed to send message in cause of RemoteStopped.

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Release note

None

Signed-off-by: joccau <zak.zhao@pingcap.cn>
@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-triage-completed dco-signoff: yes Indicates the PR's author has signed the dco. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. contribution This PR is from a community contributor. needs-ok-to-test Indicates a PR created by contributors and need ORG member send '/ok-to-test' to start testing. labels Nov 15, 2024
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Nov 15, 2024

Hi @joccau. Thanks for your PR.

I'm waiting for a tikv member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ti-chi-bot ti-chi-bot bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Nov 15, 2024
@joccau joccau changed the title import: call sink.fail() when failed to send message by grpc [wip]import: call sink.fail() when failed to send message by grpc Nov 15, 2024
@ti-chi-bot ti-chi-bot bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 15, 2024
@joccau joccau changed the title [wip]import: call sink.fail() when failed to send message by grpc import: call sink.fail() when failed to send message by grpc Nov 16, 2024
@ti-chi-bot ti-chi-bot bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 16, 2024
Signed-off-by: joccau <zak.zhao@pingcap.cn>
Signed-off-by: joccau <zak.zhao@pingcap.cn>
@ti-chi-bot ti-chi-bot bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. release-note-none Denotes a PR that doesn't merit a release note. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. do-not-merge/needs-triage-completed release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Nov 16, 2024
@joccau
Copy link
Contributor Author

joccau commented Nov 18, 2024

@kennytm @YuJuncen @3pointer @Leavrth PTAL

@joccau
Copy link
Contributor Author

joccau commented Nov 18, 2024

/cc @kennytm @YuJuncen @3pointer @Leavrth PTAL~

Copy link
Contributor

@YuJuncen YuJuncen left a comment

Choose a reason for hiding this comment

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

rest lgtm

}

#[test]
fn test_duplicate_detect_with_client_stop() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess test cases with failpoints enabled should be put in the failpoints dir, or the failpoint may race with other cases...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess test cases with failpoints enabled should be put in the failpoints dir, or the failpoint may race with other cases...

Already moved this case to failpoint dir.

@ti-chi-bot ti-chi-bot bot added approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Nov 19, 2024
@ti-chi-bot ti-chi-bot bot added needs-cherry-pick-release-8.1 Should cherry pick this PR to release-8.1 branch. needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. labels Nov 19, 2024
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-7.1: #17861.

ti-chi-bot pushed a commit to ti-chi-bot/tikv that referenced this pull request Nov 19, 2024
close tikv#17830

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-8.1: #17862.

ti-chi-bot pushed a commit to ti-chi-bot/tikv that referenced this pull request Nov 19, 2024
close tikv#17830

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-6.5: #17863.

ti-chi-bot pushed a commit to ti-chi-bot/tikv that referenced this pull request Nov 19, 2024
close tikv#17830

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot pushed a commit to ti-chi-bot/tikv that referenced this pull request Nov 19, 2024
close tikv#17830

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-7.5: #17864.

ti-chi-bot bot pushed a commit that referenced this pull request Nov 20, 2024
…#17861)

close #17830

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
Signed-off-by: joccau <zak.zhao@pingcap.cn>

Co-authored-by: Zack Zhao <57036248+joccau@users.noreply.github.com>
Co-authored-by: joccau <zak.zhao@pingcap.cn>
@ti-chi-bot ti-chi-bot bot added the needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. label Nov 25, 2024
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-8.5: #17893.

ti-chi-bot pushed a commit to ti-chi-bot/tikv that referenced this pull request Nov 25, 2024
close tikv#17830

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot bot pushed a commit that referenced this pull request Nov 26, 2024
…#17893)

close #17830

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
Signed-off-by: joccau <zak.zhao@pingcap.cn>

Co-authored-by: Zack Zhao <57036248+joccau@users.noreply.github.com>
Co-authored-by: joccau <zak.zhao@pingcap.cn>
ti-chi-bot bot pushed a commit that referenced this pull request Dec 11, 2024
…#17864)

close #17830

Signed-off-by: joccau <zak.zhao@pingcap.cn>

Co-authored-by: joccau <zak.zhao@pingcap.cn>
@joccau
Copy link
Contributor Author

joccau commented Feb 16, 2025

/remove-label needs-cherry-pick-release-6.5

@ti-chi-bot ti-chi-bot bot removed the needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. label Feb 16, 2025
@joechenrh
Copy link

/cherrypick release-6.5-20250805-v6.5.12

ti-chi-bot pushed a commit to ti-chi-bot/tikv that referenced this pull request Aug 5, 2025
close tikv#17830

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Member

@joechenrh: new pull request created to branch release-6.5-20250805-v6.5.12: #18789.
But this PR has conflicts, please resolve them!

Details

In response to this:

/cherrypick release-6.5-20250805-v6.5.12

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

ti-chi-bot bot pushed a commit that referenced this pull request Aug 6, 2025
…#18789)

close #17830

Signed-off-by: Ruihao Chen <ruihao.chen@pingcap.cn>

Co-authored-by: Ruihao Chen <ruihao.chen@pingcap.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved contribution This PR is from a community contributor. dco-signoff: yes Indicates the PR's author has signed the dco. lgtm needs-cherry-pick-release-7.1 Should cherry pick this PR to release-7.1 branch. needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. needs-cherry-pick-release-8.1 Should cherry pick this PR to release-8.1 branch. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. ok-to-test Indicates a PR is ready to be tested. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tikv panics when injecting pd failure during add multi index

6 participants