Closed git-hulk closed 3 months ago
The problem is that we add ERR prefix for all msg returned by Status
.
One solution is to add a new status code for no ERR prefix. (Or, add many status code for LOADING, NOPROTO...)
The problem is that we add ERR prefix for all msg returned by Status.
Yes
One solution is to add a new status code for no ERR prefix. (Or, add many status code for LOADING, NOPROTO...)
This also sounds good
closes by #2362
Search before asking
Motivation
As mentioned in the comment: https://github.com/apache/kvrocks/blob/unstable/tests/gocase/util/server.go#L142, we should take care of different RESP error kinds to avoid introducing the protocol compatibility issues.
Solution
Use an unify function to return the RESP error message, like the following:
Are you willing to submit a PR?