8000 DEBUG SLEEP with a time that is not a number says "wrong number of arguments" · Issue #657 · kividbio/kividb · GitHub
[go: up one dir, main page]

Skip to content

DEBUG SLEEP with a time that is not a number says "wrong number of arguments" #657

Closed

Description

@murtazayusuf

Found while documenting 1.2.1 (kividb-docs, commands/debug-sleep.md).

Release: 1.2.1 (v1.2.1, 255ad15), default build.

> DEBUG SLEEP abc
(error) ERR wrong number of arguments for DEBUG sleep
> DEBUG SLEEP 0 1
(error) ERR wrong number of arguments for DEBUG sleep
> DEBUG SLEEP
(error) ERR wrong number of arguments for DEBUG sleep
> DEBUG SLEEP -1
(error) ERR value is out of range

Expected: a value that is not a number gets a value error (ERR value is not a valid float, or as Redis does), and a wrong argument count Redis's ERR unknown subcommand or wrong number of arguments for 'sleep'. Try DEBUG HELP., which 1.2.1 already uses for the other DEBUG subcommands (changelog: "Any other subcommand ... or one with the wrong number of arguments, is refused with Redis's ...").

Actual: abc is reported as a wrong number of arguments, and the arity error has its own wording.

Impact: cosmetic; misleading error text for test suites.

Good first issue: small and self-contained, and Redis 8.10 is the spec.

Activity

  1. added this to the 1.3.0 milestone on Nov 12, 2026
  2. added
    bug
    good first issue
    redis-compat
    on Nov 12, 2026
  3. KrishPatel1905 commented on Nov 13, 2026

    @KrishPatel1905
    Contributor

    Hi @murtazayusuf, I'd like to work on this issue. I'm interested in fixing the incorrect error handling for invalid DEBUG SLEEP arguments. Could you please assign this issue to me?

  4. added 2 commits that reference this issue on Nov 13, 2026
    728787b
    88ab540
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buggood first issueredis-compat

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0