Skip to content

pika 数据幻觉, 没有写入操作, llen mykey 有时返回 2,有时返回 0 #3067

@wugifer

Description

@wugifer

Is this a regression?

Yes

Description

使用的 pika docker 版本 v3.5.5

向 list 类型 key queue_351da1a9_root.somename.a.b.c.all 写入 4 个值,用 llen 查询时结果不固定:有时返回 2,有时返回 0

tcpdump 显示的交互过程:

16:26:43.579466 eth0  Out IP    ...    length 57: RESP "AUTH" "xxxxxx"
16:26:43.579533 eth0  In  IP    ...    length 5 : RESP "OK"
16:26:43.579678 eth0  Out IP    ...    length 16: RESP "PING 0"
16:26:43.579790 eth0  In  IP    ...    length 59: RESP "ERR unknown command `PING 0`, with args beginning with: "
16:26:43.580278 eth0  Out IP    ...    length 57: RESP "AUTH" "xxxxxx"
16:26:43.580371 eth0  In  IP    ...    length 5 : RESP "OK"
16:26:43.580521 eth0  Out IP    ...    length 59: RESP "LLEN" "queue_351da1a9_root.somename.a.b.c.all"
16:26:43.580553 eth0  In  IP    ...    length 4 : RESP "0"

16:26:54.709256 eth0  Out IP    ...    length 57: RESP "AUTH" "xxxxxx"
16:26:54.709303 eth0  In  IP    ...    length 5 : RESP "OK"
16:26:54.709382 eth0  Out IP    ...    length 16: RESP "PING 0"
16:26:54.709449 eth0  In  IP    ...    length 59: RESP "ERR unknown command `PING 0`, with args beginning with: "
16:26:54.709805 eth0  Out IP    ...    length 57: RESP "AUTH" "xxxxxx"
16:26:54.710384 eth0  In  IP    ...    length 5 : RESP "OK"
16:26:54.710574 eth0  Out IP    ...    length 59: RESP "LLEN" "queue_351da1a9_root.somename.a.b.c.all"
16:26:54.710709 eth0  In  IP    ...    length 4 : RESP "2"

llen 显示为 0 时,执行 lpop,前几次无结果,过了几次后又查出来了

Please provide a link to a minimal reproduction of the bug

No response

Screenshots or videos

No response

Please provide the version you discovered this bug in (check about page for version information)


Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ☢️ BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions