feat: support grpc stream for data plane#352
Draft
hwjiangkai wants to merge 15 commits into
Draft
Conversation
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
hwjiangkai
marked this pull request as draft
December 17, 2022 08:12
hwjiangkai
force-pushed
the
clientstream-v2
branch
from
December 17, 2022 13:05
f285759 to
64ce0a2
Compare
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
hwjiangkai
force-pushed
the
clientstream-v2
branch
from
December 17, 2022 13:08
64ce0a2 to
72be0cc
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #352 +/- ##
==========================================
- Coverage 62.72% 59.02% -3.71%
==========================================
Files 133 172 +39
Lines 12128 14220 +2092
==========================================
+ Hits 7607 8393 +786
- Misses 3977 5225 +1248
- Partials 544 602 +58
Continue to review full report at Codecov.
|
hwjiangkai
marked this pull request as ready for review
December 17, 2022 13:12
wenfengwang
suggested changes
Dec 19, 2022
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
ifplusor
reviewed
Dec 20, 2022
ifplusor
requested changes
Dec 20, 2022
ifplusor
left a comment
Collaborator
There was a problem hiding this comment.
don't serialize on a stream.
hwjiangkai
marked this pull request as draft
December 20, 2022 03:32
…m-v2 Signed-off-by: jyjiangkai <jyjiangkai@163.com>
hwjiangkai
force-pushed
the
clientstream-v2
branch
from
December 20, 2022 09:39
ed2616f to
804f744
Compare
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
hwjiangkai
marked this pull request as ready for review
December 21, 2022 06:10
ifplusor
requested changes
Dec 22, 2022
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
hwjiangkai
force-pushed
the
clientstream-v2
branch
from
December 22, 2022 08:40
734120b to
2278c46
Compare
ifplusor
requested changes
Dec 23, 2022
hwjiangkai
force-pushed
the
clientstream-v2
branch
from
December 23, 2022 07:17
16661cb to
b704d31
Compare
ifplusor
reviewed
Dec 23, 2022
hwjiangkai
force-pushed
the
clientstream-v2
branch
from
December 23, 2022 08:51
b704d31 to
6843243
Compare
ifplusor
requested changes
Dec 23, 2022
| if stderr.Is(err, io.EOF) { | ||
| s.appendStream.CloseSend() | ||
| s.appendStream = nil | ||
| c, _ := s.appendCallbacks.LoadAndDelete(opaqueID) |
hwjiangkai
force-pushed
the
clientstream-v2
branch
from
December 23, 2022 18:11
6843243 to
101e46b
Compare
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
hwjiangkai
force-pushed
the
clientstream-v2
branch
from
December 24, 2022 19:09
101e46b to
83363a1
Compare
…m-v2 Signed-off-by: jyjiangkai <jyjiangkai@163.com>
ifplusor
reviewed
Dec 28, 2022
ifplusor
reviewed
Dec 28, 2022
ifplusor
reviewed
Dec 28, 2022
ifplusor
reviewed
Dec 28, 2022
ifplusor
requested changes
Dec 28, 2022
hwjiangkai
force-pushed
the
clientstream-v2
branch
2 times, most recently
from
December 28, 2022 12:43
c527fad to
e3f573e
Compare
…m-v2 Signed-off-by: jyjiangkai <jyjiangkai@163.com>
hwjiangkai
force-pushed
the
clientstream-v2
branch
from
December 30, 2022 03:42
e3f573e to
98dc0f9
Compare
ifplusor
requested changes
Dec 30, 2022
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
hwjiangkai
force-pushed
the
clientstream-v2
branch
from
December 30, 2022 08:06
6ce31f8 to
86a6f0e
Compare
hwjiangkai
force-pushed
the
clientstream-v2
branch
2 times, most recently
from
January 6, 2023 09:46
1460868 to
1f7ad23
Compare
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
hwjiangkai
force-pushed
the
clientstream-v2
branch
from
January 6, 2023 09:58
1f7ad23 to
b4423f7
Compare
ifplusor
requested changes
Jan 9, 2023
Comment on lines
+214
to
+215
| errCode = errpb.ErrorCode_UNKNOWN | ||
| errMsg = "unknown" |
Collaborator
There was a problem hiding this comment.
remains detail of ErrorType.
hwjiangkai
force-pushed
the
clientstream-v2
branch
from
January 9, 2023 12:40
a46f7e6 to
905abf6
Compare
ifplusor
requested changes
Jan 10, 2023
| errCode = errpb.ErrorCode_APPEND_TO_BLOCK_FAILED | ||
| errMsg = "append to block failed" | ||
| } | ||
| log.Error(ctx, "append to block failed", map[string]interface{}{ |
| request, err := stream.Recv() | ||
| if err != nil { | ||
| if stderr.Is(err, io.EOF) { | ||
| log.Warning(ctx, "append stream closed", map[string]interface{}{ |
Collaborator
There was a problem hiding this comment.
EOF is ok, don't use Warning and Error
hwjiangkai
force-pushed
the
clientstream-v2
branch
from
January 10, 2023 03:24
905abf6 to
1913655
Compare
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
hwjiangkai
force-pushed
the
clientstream-v2
branch
from
January 10, 2023 11:38
1913655 to
73b43c0
Compare
ifplusor
marked this pull request as draft
February 14, 2023 02:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
transport layer performance optimization
Issue Number: close #xxx
Problem Summary
What is changed and how does it work?
Check List
Tests