-
Notifications
You must be signed in to change notification settings - Fork 3
RouterCallImpl: fix unpacking 'vshard.storage.call' response #35
RouterCallImpl: fix unpacking 'vshard.storage.call' response #35
Conversation
nurzhan-saktaganov
commented
Aug 8, 2024
- handle case when len(respData) < 2
- more informative logs and typo fix
- fix "err" redeclaring in inner block
- add missed "continue" operator in case when isVShardRespOk is false
* handle case when len(respData) < 2 * more informative logs and typo fix * fix "err" redeclaring in inner block * add missed "continue" operator in case when isVShardRespOk is false
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #35 +/- ##
==========================================
- Coverage 22.04% 21.67% -0.38%
==========================================
Files 9 9
Lines 635 646 +11
==========================================
Hits 140 140
- Misses 488 499 +11
Partials 7 7 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank u for review, pls check some fixes & add CHANGELOG
api.go
Outdated
@@ -175,19 +190,28 @@ func (r *Router) RouterCallImpl(ctx context.Context, | |||
if !isVShardRespOk { // error | |||
errorResp := &StorageCallAssertError{} | |||
|
|||
err = future.GetTyped(&[]interface{}{&isVShardRespOk, errorResp}) | |||
if len(respData) < 2 { | |||
err = fmt.Errorf("unexpected response length when respData[0] == nil: %d", len(respData)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resp data cant be nil, cause we check it before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and add few comments pls
* add more informative comments to RouterCallImpl * update CHANGELOG.md
…ignore tmp files changes