The GitHub Actions job "CI" on kvrocks.git/unstable has failed.
Run started by GitHub user git-hulk (triggered by git-hulk).

Head commit for run:
4404eb7e9662e92d2d3e304ada73322f50fa84a0 / sryan yuan <[email protected]>
fix(string): add empty string value check for INCR to match Redis behavior 
(#3354)

### Background
Previously, Kvrocks allowed INCR on a key whose value was an empty
string (""),
treating it as zero and returning 1.

In Redis, the same operation results in an error:
ERR value is not an integer or out of range

This difference caused inconsistent behavior between Kvrocks and Redis.

### Changes
- Added check for empty string values before performing INCR
- Return error when value is an empty string, matching Redis behavior

### Result
Kvrocks now behaves consistently with Redis when performing INCR on
empty string values,
improving compatibility and reducing unexpected results in client
applications.

Co-authored-by: yxj25245 <[email protected]>

Report URL: https://github.com/apache/kvrocks/actions/runs/21476800544

With regards,
GitHub Actions via GitBox

Reply via email to