[英]Google Pub/Sub "A subscription cannot have both message ordering enabled and a dead letter policy configured."
Trying to create a subscription with ordering enabled and a dead letter policy and getting the error:尝试创建启用了排序和死信策略的订阅并收到错误:
A subscription cannot have both message ordering enabled and a dead letter policy configured.订阅不能同时启用消息排序和配置死信策略。
Why are they mutually exclusive?为什么它们相互排斥?
Moreover if dead lettering is disabled for a subscription the messages don't include the delivery_attempt field so I can't even do dead lettering myself when handling a message.此外,如果为订阅禁用死字,则消息不包含 delivery_attempt 字段,因此在处理消息时我什至不能自己做死字。 That's quite unusable.那是很不能用的。
Duplicate of:副本:
Google PubSub ordered Messages to Dead Letter Queue process Google PubSub 订购消息到死信队列流程
As per your concern about not being able to access your delivery_attempt counter because of the conflict with message ordering, please see the following post for some workaround:根据您对由于与消息排序冲突而无法访问您的 delivery_attempt 计数器的担忧,请参阅以下帖子以了解一些解决方法:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.