cloudwu / cloudwu/skynet

使用redis集群,偶现发生moved,然后连接不上,执行报错

Open
#2,000 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
14.1k
Forks
4.3k
Avg merge
5h 41m
Merged PRs (30d)
1

Description

错误日志:
[:0000009a][ERROR][00:00:45.45][err_handle.lua:7] ../skynet/lualib/skynet/db/redis/cluster.lua:407: Too many Cluster redirections?,maybe node is disconnected (last error: " 15067 172.16.2.67:6379")
stack traceback:
../src/share/libs/err_handle.lua:6: in function 'err_handle.error_handler'
[C]: in function 'error'
../skynet/lualib/skynet/db/redis/cluster.lua:407: in function <../skynet/lualib/skynet/db/redis/cluster.lua:315>
(...tail calls...)

而且进程出现异常后,debug_console连接上马上就被关闭,无法使用

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading skynet/lualib/skynet/db/redis/cluster.lua around lines 315-407 and the error path in src/share/libs/err_handle.lua. Reproduce the intermittent MOVED or disconnected-node condition with a Redis cluster, then observe whether debug_console is closed after the process error. Done means the failure behavior is understood and the reported Redis and console symptoms are addressed with verification.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, redis
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.