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

开启redisshake同步数据一分钟后报错退出Lua script attempted to access a non local key in a cluster node #916

Open
samueljames opened this issue Jan 9, 2025 · 2 comments
Labels
type: question Further information is requested

Comments

@samueljames
Copy link

samueljames commented Jan 9, 2025

问题描述(Issue Description)

开启redisshake同步数据一分钟后报错退出

Please provide a brief description of the issue you encountered.

环境信息(Environment)

  • RedisShake 版本(RedisShake Version):4.3.1
  • Redis 源端版本(Redis Source Version):3.2.8
  • Redis 目的端版本(Redis Destination Version):3.2.8
  • Redis 部署方式(standalone/cluster/sentinel):集群
  • 是否在云服务商实例上部署(Deployed on Cloud Provider):阿里云自建部署,非阿里云提供

日志信息(Logs)

2025-01-09 10:56:23 INF read_count=[95183899], read_ops=[148277.79], write_count=[95183899], write_ops=[148278.38], src-1, syncing rdb, size=[753 MiB/1.1 GiB]
2025-01-09 10:56:28 INF read_count=[95928850], read_ops=[148703.93], write_count=[95929159], write_ops=[148703.53], src-2, syncing rdb, size=[808 MiB/892 MiB]
2025-01-09 10:56:33 INF read_count=[96670688], read_ops=[148786.68], write_count=[96670686], write_ops=[148786.68], src-0, syncing rdb, size=[761 MiB/964 MiB]
2025-01-09 10:56:38 INF read_count=[97413121], read_ops=[148563.73], write_count=[97413121], write_ops=[148564.13], src-1, syncing rdb, size=[771 MiB/1.1 GiB]
2025-01-09 10:56:43 INF read_count=[98151515], read_ops=[147627.95], write_count=[98151513], write_ops=[147627.55], src-2, syncing rdb, size=[826 MiB/892 MiB]
2025-01-09 10:56:48 INF read_count=[98897103], read_ops=[148890.11], write_count=[98898165], write_ops=[148890.31], src-0, syncing rdb, size=[779 MiB/964 MiB]
2025-01-09 10:56:53 INF read_count=[99640280], read_ops=[148952.11], write_count=[99640278], write_ops=[148951.91], src-1, syncing rdb, size=[790 MiB/1.1 GiB]
2025-01-09 10:56:58 INF read_count=[100384177], read_ops=[148761.42], write_count=[100384174], write_ops=[148761.22], src-2, syncing rdb, size=[845 MiB/892 MiB]
2025-01-09 10:57:03 INF read_count=[101122677], read_ops=[147447.21], write_count=[101122675], write_ops=[147447.41], src-0, syncing rdb, size=[797 MiB/964 MiB]
2025-01-09 10:57:08 INF read_count=[101855798], read_ops=[146204.43], write_count=[101855798], write_ops=[146204.83], src-1, syncing rdb, size=[809 MiB/1.1 GiB]
2025-01-09 10:57:13 INF read_count=[102591276], read_ops=[147673.15], write_count=[102591275], write_ops=[147672.94], src-2, syncing rdb, size=[862 MiB/892 MiB]
2025-01-09 10:57:18 INF read_count=[103332226], read_ops=[148307.96], write_count=[103332226], write_ops=[148308.16], src-0, syncing rdb, size=[815 MiB/964 MiB]
2025-01-09 10:57:23 INF read_count=[104074346], read_ops=[148194.46], write_count=[104077598], write_ops=[148194.06], src-1, syncing rdb, size=[831 MiB/1.1 GiB]
2025-01-09 10:57:28 INF read_count=[104817910], read_ops=[148925.38], write_count=[104817907], write_ops=[148925.18], src-2, syncing rdb, size=[880 MiB/892 MiB]
2025-01-09 10:57:33 INF read_count=[105561542], read_ops=[148744.00], write_count=[105561539], write_ops=[148744.00], src-0, syncing rdb, size=[834 MiB/964 MiB]
2025-01-09 10:57:37 ERR [writer_10.111.16.9_46480] receive reply failed. cmd=[EVAL if redis.call('get','xwrj:0300701001:lock')=='0bd59e29ca43473ab6765be01a4e7ece1191' then return...], error=[ERR Error running script (call to f_0f7e2f21554bc1714dcdfb92d70d62056ed6239c): @user_script:1: @user_script: 1: Lua script attempted to access a non local key in a cluster node ]
RedisShake/internal/writer/redis_standalone_writer.go:154 -> (*redisStandaloneWriter).processReply()
runtime/asm_amd64.s:1650 -> goexit()

If there are any error logs or other relevant logs, please provide them here.

其他信息(Additional Information)

请提供任何其他相关的信息,如配置文件、错误信息或截图等。

Please provide any additional information, such as configuration files, error messages, or screenshots.

@samueljames samueljames added the type: question Further information is requested label Jan 9, 2025
@samueljames
Copy link
Author

samueljames commented Jan 9, 2025

我尝试用scan模式就没有这个问题,只有sync模式会有问题,scan模式靠谱吗,我看key的数量有差异,
avg_ttl的值也变成了0

@suxb201
Copy link
Member

suxb201 commented Jan 9, 2025

你可以搜一下这个报错:Lua script attempted to access a non local key in a cluster node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants