StackExchange / StackExchange/StackExchange.Redis
StreamRead always return message info
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.2k
- Forks
- 1.6k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 43
Description
I have executed db.StreamRead(ZikeyStream, position: StreamPosition.Beginning) many times. And it always return message info.
It should return null because all messages have consumed. I executed the command xread streams Zikey 0-0 on redis-cli, it returns nil. Is this a bug?
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
Start from the StreamRead API and reproduce the reported behavior with the Zikey stream at StreamPosition.Beginning. Compare its result with the redis-cli xread streams Zikey 0-0 response, then determine whether the client should return null when all messages are consumed; done means the behavior is clarified and covered by a regression check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, redis
- Domain
- database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100