mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 15:35:55 +03:00
[GH-ISSUE #480] [BUG] redis WARN: CROSSSLOT #1234
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#1234
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ChnMig on GitHub (Jun 2, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/480
Originally assigned to: @hibiken on GitHub.
Describe the bug
When I set redis to cluster mode and connect using
asynq.RedisClusterClientOpt,asynqreports frequent errors:WARN: recoverer: could not move task to archive: INTERNAL_ERROR: redis eval error: CROSSSLOT Keys in request don't hash to the same slotTo Reproduce
When he starts, it will definitely reappear
Environment (please complete the following information):
asynqpackage 0.23.0@hibiken commented on GitHub (Jun 3, 2022):
@ChnMig Thank you for reporting an issue.
Based on the error message you provided, it seems that error is returned from this call to
Archive(github.com/hibiken/asynq@6c954c87bf/recoverer.go (L123-L125)).If you look at the implementation of the
Archive, it should all have the same hash tag of{qname}github.com/hibiken/asynq@6c954c87bf/internal/rdb/rdb.go (L824-L867))Do you have queue name or TaskID with
{}in the string?@ChnMig commented on GitHub (Jun 7, 2022):
@hibiken Ok, I have changed to standalone redis for now, but I will try it in my free time, I will close this issues first, when I have conclusion, I will let you know here, thanks for your help
@misterGF commented on GitHub (Nov 18, 2023):
I experienced a similar issue. My error was WARN: recoverer: could not move task to archive: INTERNAL_ERROR: redis eval error: NOT FOUND
This happened after I mucked up a record in redis. I was trying to edit it manually and something went awry.
I fixed it by looking at my keys for something that seemed different from my staging environment.
I spotted a key that existed in the staging environment
asynq:{default}:active | ["0c8ff109-6d22-4dcf-aedb-749e90c96e94"]
I ended up renaming the key name to "a" to test if it it would fix it and it did!
Probably could have fixed it by removing that id in the value as well. Hope this helps someone.