Skip to content

EVALSHA is logged as EVAL in SLOWLOG #3403

@stefanolczak

Description

@stefanolczak

It seems there is a bug that is caused by replication script cache. When calling EVALSHA of script that doesn't exist in replication script cache the command used for script call is rewritten to EVAL for slave propagation. After the script call is done the rewritten command is pushed to SLOWLOG. When there are no slaves connected and the AOF is disabled the replication script cache is flushed every 1 second so many script calls will be logged wrongly. So when examining SLOWLOG entries it can be confusing what commands are used especially when you are debugging script performance like me;) In other hand is it really necessary to update the replication script cache if there are no slaves connected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions