StackExchange / StackExchange/StackExchange.Redis
READONLY You can't write against a read-only replica
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.2k
- Forks
- 1.6k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 43
Description
Hello,
After failover, I am receiving the "READONLY You can't write against a read-only replica" error in my Amazon ElastiCache for Redis (cluster mode disabled) cluster. This usually happens during the maintenance window. I'm using the primary endpoint.
If it might be the issue that StackExchange Redis cache DNS in the application node and routes traffic to the old primary node? How to handle such errors in this situation?
Thank you for
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository file, test, or entry point is identified. Start by confirming the reported Amazon ElastiCache failover scenario and whether StackExchange.Redis is expected to handle the stale primary endpoint. Done would require a maintainer-defined client change or documented guidance, plus a reproducible test or clear reproduction if a code fix is needed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, redis
- Domain
- cloud, database
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100