Skip to content

Conversation

@marsishandsome
Copy link
Collaborator

@marsishandsome marsishandsome commented Dec 30, 2021

Signed-off-by: marsishandsome marsishandsome@gmail.com

What problem does this PR solve?

close #459

got StoreNotMatch error when using switchProxyStore

What is changed and how it works?

use target store context instead of proxy store context when calling grpc forward

…grpc forward

Signed-off-by: marsishandsome <marsishandsome@gmail.com>
@marsishandsome marsishandsome changed the title use target store context instead of proxy store context when calling grpc forward [close #459] use target store context instead of proxy store context when calling grpc forward Dec 30, 2021
@marsishandsome
Copy link
Collaborator Author

/run-all-tests

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.

could you add some tests?

@iosmanthus
Copy link
Member

could you add some tests?

This might need MockTiKV to cover this path, which we don't have now.

@zz-jason
Copy link
Member

could you add some tests?

This might need MockTiKV to cover this path, which we don't have now.

is there another method to add a test without mocktikv?

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

@iosmanthus
Copy link
Member

LGTM

@zz-jason
Copy link
Member

/merge

@ti-srebot
Copy link
Collaborator

/run-all-tests

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

cherry pick to release-3.1 in PR #517

zz-jason pushed a commit that referenced this pull request Feb 15, 2022
…when calling grpc forward (#458) (#517)

Co-authored-by: Liangliang Gu <marsishandsome@gmail.com>
@marsishandsome
Copy link
Collaborator Author

/run-cherry-picker

marsishandsome added a commit to marsishandsome/client-java that referenced this pull request Feb 15, 2022
…ext when calling grpc forward (tikv#458)

Co-authored-by: Jian Zhang <zjsariel@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
marsishandsome added a commit to marsishandsome/client-java that referenced this pull request Feb 15, 2022
…ext when calling grpc forward (tikv#458)

Co-authored-by: Jian Zhang <zjsariel@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
marsishandsome added a commit that referenced this pull request Feb 15, 2022
…when calling grpc forward (#458) (#523)

Co-authored-by: Jian Zhang <zjsariel@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Signed-off-by: marsishandsome <marsishandsome@gmail.com>

Co-authored-by: Jian Zhang <zjsariel@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.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.

got StoreNotMatch error when using switchProxyStore

4 participants