pika icon indicating copy to clipboard operation
pika copied to clipboard

A problem occurs during go integration testing

Open luky116 opened this issue 11 months ago • 2 comments

Is this a regression?

Yes

Description

There was a problem when go integrated testing the idea, but the problem was not reproduced locally, it should be a problem caused by pika cache

集成测试的 CI 报了下面的问题,但是本地没有复现,猜测应该是 Pika 缓存导致的问题,非必现。先记录这个issue,今天继续排查原因

image

Please provide a link to a minimal reproduction of the bug

No response

Screenshots or videos

images

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

No response

Anything else?

No response

luky116 avatar Mar 11 '24 23:03 luky116

这个问题的原因是从节点apply binlog的时候不能保证顺序,所以有可能flushdb先于set执行 导致从有脏数据,和缓存没有关系,解决办法,在flushdb前后都检查一下

chejinge avatar Mar 27 '24 12:03 chejinge

Bot detected the issue body's language is not English, translate it automatically.


The reason for this problem is that the order cannot be guaranteed when applying binlog from the slave node, so flushdb may be executed before set, resulting in dirty data from the slave node, which has nothing to do with the cache. The solution is to check before and after flushdb.

Issues-translate-bot avatar Mar 27 '24 12:03 Issues-translate-bot

问题未复现

luky116 avatar Aug 30 '24 13:08 luky116

Bot detected the issue body's language is not English, translate it automatically.


Problem does not recur

Issues-translate-bot avatar Aug 30 '24 13:08 Issues-translate-bot