morningman opened a new pull request #4702:
URL: https://github.com/apache/incubator-doris/pull/4702


   ## Proposed changes
   
   At present, when some rpc errors occur, the client cannot obtain the error 
information well.
   
   And this CL change the RPC error returned to client like this:
   
   ```
   ERROR 1064 (HY000): errCode = 2, detailMessage = there is no scanNode 
Backend. [10002: in black list(A error occurred: errorCode=2001 
errorMessage:Channel inactive error!)]
   
   ERROR 1064 (HY000): failed to send brpc batch, error=The server is 
overcrowded, error_text=[E1011]The server is overcrowded @xx.xx.xx.xx:8060 
[R1][E1011]The server is overcrowded @xx.xx.xx.xx:8060 [R2][E1011]The server is 
overcrowded @xx.xx.xx.xx:8060 [R3][E1011]The server is overcrowded 
@xx.xx.xx.xx:8060, client: yy.yy.yy.yy
   ```
   
   ## Types of changes
   
   - [x] Code refactor (Modify the code structure, format the code, etc...)
   
   ## Checklist
   
   - [x] I have create an issue on (Fix #4701), and have described the 
bug/feature there in detail
   - [x] Compiling and unit tests pass locally with my changes
   - [x] I have added tests that prove my fix is effective or that my feature 
works


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to