Skip to content

Conversation

@iosmanthus
Copy link
Member

@iosmanthus iosmanthus commented Mar 2, 2022

Signed-off-by: iosmanthus myosmanthustree@gmail.com

What problem does this PR solve?

Issue Number: close #550

Problem Description:

This pull request ignores exceptions while probing the leader/proxy store for a region's peer list including a unit test for mocking encountering some abnormal store while doing probing.

Check List for Tests

This PR has been tested by at least one of the following methods:

  • Unit test
  • Integration test

Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
marsishandsome
marsishandsome previously approved these changes Mar 3, 2022
Copy link
Collaborator

@marsishandsome marsishandsome left a comment

Choose a reason for hiding this comment

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

LGTM

zz-jason
zz-jason previously approved these changes Mar 3, 2022
Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

ti-srebot
ti-srebot previously approved these changes Mar 3, 2022
@zz-jason
Copy link
Member

zz-jason commented Mar 3, 2022

@iosmanthus does it affect release 3.1 and release 3.2?

@iosmanthus
Copy link
Member Author

@iosmanthus does it affect release 3.1 and release 3.2?

Yes. Cherry-pick is needed.

@iosmanthus
Copy link
Member Author

/merge

@ti-srebot
Copy link
Collaborator

/run-all-tests

1 similar comment
@iosmanthus
Copy link
Member Author

/run-all-tests

@ti-srebot
Copy link
Collaborator

/run-all-tests

@ti-srebot
Copy link
Collaborator

/run-all-tests

Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
@iosmanthus iosmanthus dismissed stale reviews from ti-srebot, zz-jason, and marsishandsome via bcc2d54 March 22, 2022 14:28
@codecov
Copy link

codecov bot commented Mar 22, 2022

Codecov Report

Merging #551 (bcc2d54) into master (b5b0545) will increase coverage by 0.16%.
The diff coverage is 84.00%.

@@             Coverage Diff              @@
##             master     #551      +/-   ##
============================================
+ Coverage     31.95%   32.12%   +0.16%     
- Complexity     1329     1335       +6     
============================================
  Files           279      279              
  Lines         17372    17385      +13     
  Branches       1980     1981       +1     
============================================
+ Hits           5552     5585      +33     
+ Misses        11215    11193      -22     
- Partials        605      607       +2     
Impacted Files Coverage Δ
.../tikv/common/region/AbstractRegionStoreClient.java 75.46% <78.94%> (-2.59%) ⬇️
...ain/java/org/tikv/common/region/RegionManager.java 69.23% <100.00%> (+0.43%) ⬆️
src/main/java/io/grpc/internal/ClientCallImpl.java 56.82% <0.00%> (+0.48%) ⬆️
...rc/main/java/io/grpc/netty/NettyClientHandler.java 56.89% <0.00%> (+0.86%) ⬆️
...ty/handler/codec/http2/Http2ConnectionHandler.java 48.65% <0.00%> (+0.97%) ⬆️
src/main/java/org/tikv/common/region/TiStore.java 61.53% <0.00%> (+5.12%) ⬆️
...va/org/tikv/common/region/StoreHealthyChecker.java 72.36% <0.00%> (+21.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5b0545...bcc2d54. Read the comment docs.

Copy link
Collaborator

@marsishandsome marsishandsome left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason enabled auto-merge (squash) March 23, 2022 04:48
Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason merged commit e89ca5f into tikv:master Mar 23, 2022
ti-srebot pushed a commit to ti-srebot/client-java that referenced this pull request Mar 23, 2022
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Collaborator

cherry pick to release-3.1 in PR #564

ti-srebot pushed a commit to ti-srebot/client-java that referenced this pull request Mar 23, 2022
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Collaborator

cherry pick to release-3.2 in PR #565

zz-jason pushed a commit that referenced this pull request Mar 28, 2022
)

Co-authored-by: iosmanthus <dengliming@pingcap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

seek leader/proxy store early abort

4 participants