Skip to content

ioredis cluster - All keys in the pipeline should belong to the same slot #34

@0xAnakin

Description

@0xAnakin

It appears that there is an issue when providing a cluster client setup to the configuration.

const RedisCluster = require('ioredis').Cluster;

The same code will work fine if redis-clustr module is used instead.

0|index  | 17056 Tue, 26 May 2020 15:25:39 GMT [MetalDust]: Cluster leader job clusterMetricsMonitor failed because of Error: All keys in the pipeline should belong to the same slot
0|index  |     at Pipeline.exec (D:\Development\GIT\Quintessa\Quintessa\node_modules\ioredis\built\pipeline.js:216:29)
0|index  |     at Pipeline.pipeline.exec (D:\Development\GIT\Quintessa\Quintessa\node_modules\ioredis\built\transaction.js:38:34)
0|index  |     at D:\Development\GIT\Quintessa\Quintessa\node_modules\redis-metrics\lib\utils.js:127:31
0|index  |     at new Promise (<anonymous>)
0|index  |     at Object.ninvoke (D:\Development\GIT\Quintessa\Quintessa\node_modules\redis-metrics\lib\utils.js:116:10)
0|index  |     at TimestampedCounter.topRange (D:\Development\GIT\Quintessa\Quintessa\node_modules\redis-metrics\lib\counter.js:600:18)

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