Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brpop命令可能存在的问题 #186

Open
marsevilspirit opened this issue Jan 24, 2025 · 7 comments
Open

brpop命令可能存在的问题 #186

marsevilspirit opened this issue Jan 24, 2025 · 7 comments

Comments

@marsevilspirit
Copy link
Collaborator

brpop在key不存在时,会block等待,这时如果raft leader切换,会有问题吗?

@Issues-translate-bot
Copy link

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


Title: Possible problems with the brpop command

brpop will block and wait when the key does not exist. Will there be any problems if the raft leader switches?

@AlexStocks
Copy link
Contributor

AlexStocks commented Feb 8, 2025

liuhuan 提交的问题,需要考虑下这个 case

@Issues-translate-bot
Copy link

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


The question submitted by lihuan needs to be considered.

@yeyeye2333
Copy link
Collaborator

要让leader切换后保持阻塞,需要修改binlog或增加回调来调用ServeAndUnblockConns,但看redisRaft的行为好像是切换leader后直接中断?

@Issues-translate-bot
Copy link

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


To keep the leader blocked after switching, you need to modify the binlog or add a callback to call ServeAndUnblockConns, but looking at the behavior of redisRaft seems to be interrupted directly after switching the leader?

@lqxhub
Copy link
Collaborator

lqxhub commented Feb 15, 2025

优先单机模式

@Issues-translate-bot
Copy link

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


Priority stand-alone mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants