You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "enjoy-binbin (via GitHub)" <gi...@apache.org> on 2023/07/19 12:52:19 UTC

[GitHub] [kvrocks] enjoy-binbin opened a new pull request, #1597: Update error message and add the ERR error code

enjoy-binbin opened a new pull request, #1597:
URL: https://github.com/apache/kvrocks/pull/1597

   We now have some error messages that do not return
   an ERR error code:
   ```
   127.0.0.1:6666> cluster nodes
   Cluster mode is not enabled
   ```
   
   As far as i know this doesn't affect the client libs,
   and doesn't affect the users. But I think it's right
   to add the error code.
   
   Note that Redis will actually count error messages and
   standardize the error codes, like:
   ```
   127.0.0.1:6379> info Errorstats
    # Errorstats
   errorstat_ERR:count=2
   errorstat_EXECABORT:count=1
   errorstat_WRONGTYPE:count=1
   ```
   
   We mixed using the status message and error output in
   some places, this PR checks all redis::Error calls and
   use error status to replace it. (Only the ERR case is
   handled, others are not handled yet.)


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

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


[GitHub] [kvrocks] enjoy-binbin merged pull request #1597: Update error message and add the ERR error code

Posted by "enjoy-binbin (via GitHub)" <gi...@apache.org>.
enjoy-binbin merged PR #1597:
URL: https://github.com/apache/kvrocks/pull/1597


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

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


[GitHub] [kvrocks] enjoy-binbin commented on pull request #1597: Update error message and add the ERR error code

Posted by "enjoy-binbin (via GitHub)" <gi...@apache.org>.
enjoy-binbin commented on PR #1597:
URL: https://github.com/apache/kvrocks/pull/1597#issuecomment-1643035122

   > It's not a direct objective of this PR, but I'd like to have the "ERR" + some_error_message construction only in one place as an implementation detail of the Redis protocol. Maybe, inside redis::Error or so.
   
   @torwig thanks for the review. agree, that is a good suggestion.
   we still have some places that mixed using the status message and error output. (e.g. NOSCRIPT)
   i think we can leave it for a future PR as a cleanup. (pull out the error code and error message)


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

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


[GitHub] [kvrocks] torwig commented on pull request #1597: Update error message and add the ERR error code

Posted by "torwig (via GitHub)" <gi...@apache.org>.
torwig commented on PR #1597:
URL: https://github.com/apache/kvrocks/pull/1597#issuecomment-1642060837

   It's not a direct objective of this PR, but I'd like to have the `"ERR" + some_error_message` construction **only** in one place as an implementation detail of the Redis protocol. Maybe, inside `redis::Error` or so.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

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