Just like pretty much any other command in redis and in redis streams, a consumer group should be created if it doesn't already exist when a client executes XPENDING or XREADGROUP.

Otherwise, consumers cannot resume their work after a redis cluster crash or reset - they would have to recreate the consumer groups explicitly.

The streams themselves and the consumers are created automatically, so it makes sense that the same would be applied to consumer groups.

Comment From: jiangxiaoqiang

same issue. https://stackoverflow.com/questions/72158877/is-it-possible-to-let-the-redis-auto-create-the-group-name-if-it-not-exists-in-r

Comment From: hwware

I think this idea is good and I will create a PR to implemement this option and let both of you know it. Thanks

Comment From: hwware

@jiangxiaoqiang @maor-rosenfeld I already create Pr https://github.com/redis/redis/pull/10747 for this issue, please take a look when you have time, thanks

Comment From: hwware

@jiangxiaoqiang @maor-rosenfeld could you please answer the question in the pr https://github.com/redis/redis/pull/10747, becuase someone think this is a bug in the application, thanks

Comment From: maor-rozenfeld

@jiangxiaoqiang @maor-rosenfeld could you please answer the question in the pr #10747, becuase someone think this is a bug in the application, thanks

Thank you a lot for this PR :) I'm in the discussion.

Comment From: hwware

@jiangxiaoqiang @maor-rosenfeld could you please answer the question in the pr #10747, becuase someone think this is a bug in the application, thanks

Thank you a lot for this PR :) I'm in the discussion.

Thanks, i am glad to help.