Skip to content

queue-service's Lua script fails in Redis Cluster due to cross-slot key access #3451

@y-oksaku

Description

@y-oksaku

What happened:

When running a Lua script on Redis Cluster, the script fails with the error:

ERR Error running script: Lua script attempted to access a non local key in a cluster node.

Then builds cannot be started.

What you expected to happen:

The Lua script added screwdriver-cd/queue-service#80 should execute on Redis Cluster.

Perhaps, we should use hashtag correctly because the Lua script are not able to access keys of different slots. (Ref)

How to reproduce it:

  1. Use Redis in Cluster mode.
  2. Start a build

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