- 
                Notifications
    You must be signed in to change notification settings 
- Fork 95
feat: support grpc stream for data plane #352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
f285759    to
    64ce0a2      
    Compare
  
    Signed-off-by: jyjiangkai <jyjiangkai@163.com>
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. 
 | 
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
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.
don't serialize on a stream.
…m-v2 Signed-off-by: jyjiangkai <jyjiangkai@163.com>
ed2616f    to
    804f744      
    Compare
  
    Signed-off-by: jyjiangkai <jyjiangkai@163.com>
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
734120b    to
    2278c46      
    Compare
  
    16661cb    to
    b704d31      
    Compare
  
    b704d31    to
    6843243      
    Compare
  
    | if stderr.Is(err, io.EOF) { | ||
| s.appendStream.CloseSend() | ||
| s.appendStream = nil | ||
| c, _ := s.appendCallbacks.LoadAndDelete(opaqueID) | 
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.
delete for all error
6843243    to
    101e46b      
    Compare
  
    Signed-off-by: jyjiangkai <jyjiangkai@163.com>
101e46b    to
    83363a1      
    Compare
  
    …m-v2 Signed-off-by: jyjiangkai <jyjiangkai@163.com>
c527fad    to
    e3f573e      
    Compare
  
    …m-v2 Signed-off-by: jyjiangkai <jyjiangkai@163.com>
e3f573e    to
    98dc0f9      
    Compare
  
    Signed-off-by: jyjiangkai <jyjiangkai@163.com>
6ce31f8    to
    86a6f0e      
    Compare
  
    1460868    to
    1f7ad23      
    Compare
  
    Signed-off-by: jyjiangkai <jyjiangkai@163.com>
1f7ad23    to
    b4423f7      
    Compare
  
            
          
                internal/store/segment/api.go
              
                Outdated
          
        
      | errCode = errpb.ErrorCode_UNKNOWN | ||
| errMsg = "unknown" | 
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.
remains detail of ErrorType.
a46f7e6    to
    905abf6      
    Compare
  
            
          
                internal/store/segment/api.go
              
                Outdated
          
        
      | errCode = errpb.ErrorCode_APPEND_TO_BLOCK_FAILED | ||
| errMsg = "append to block failed" | ||
| } | ||
| log.Error(ctx, "append to block failed", map[string]interface{}{ | 
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.
use Warning, not Error
        
          
                internal/store/segment/api.go
              
                Outdated
          
        
      | request, err := stream.Recv() | ||
| if err != nil { | ||
| if stderr.Is(err, io.EOF) { | ||
| log.Warning(ctx, "append stream closed", map[string]interface{}{ | 
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.
EOF is ok, don't use Warning and Error
905abf6    to
    1913655      
    Compare
  
    Signed-off-by: jyjiangkai <jyjiangkai@163.com>
1913655    to
    73b43c0      
    Compare
  
    
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