antirez / antirez/disque

QLEN inconsistent results

オープン
#206 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C
スター
8.1k
フォーク
532
PR マージ指標
30日以内にマージされた PR はありません

説明

Given the cluster of 3 nodes, shouldn't the QLEN return the same results regardless the node being asked? In my tests only original node returns proper queue length, but `GETJOB` on different node still works properly

```
$ redis-cli -h eu1-queue-3 -p 7712 addjob testqueue testjob 1000
D-54bdf6f9-2qZjI4HgYKs8vP0ZWSeAANbK-05a1

$ redis-cli -h eu1-queue-1 -p 7712 qlen testqueue
(integer) 0 # WHY?
$ redis-cli -h eu1-queue-2 -p 7712 qlen testqueue
(integer) 0
$ redis-cli -h eu1-queue-3 -p 7712 qlen testqueue
(integer) 1

$ redis-cli -h eu1-queue-1 -p 7712 getjob from testqueue
1) 1) "testqueue"
2) "D-54bdf6f9-2qZjI4HgYKs8vP0ZWSeAANbK-05a1"
3) "testjob"
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。