简体   繁体   English

Google Pub/Sub “订阅不能同时启用消息排序和配置死信策略。”

[英]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 计数器的担忧,请参阅以下帖子以了解一些解决方法:

Google Cloud Pub/Sub Retry Count Google Cloud Pub/Sub 重试次数

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 google pub sub 是否将消息传递到具有相同消息 ID 的死信队列? - Does google pub sub deliver messages to dead letter queues with the same message id? 谷歌云发布/订阅 - 订阅者未将消息转发到死信主题 - Google cloud Pub/Sub - subscriber not forwarding messages to dead letter topic Google Cloud Pub/Sub 具有订购密钥和同一订阅上的多个消费者 - Google Cloud Pub/Sub with ordering keys & multiple consumers on same subscription 如何使用 Terraform 配置 GCP 发布/订阅死信 - How to configure GCP pub/sub dead letter with Terraform 如何修改 GCP Pub/Sub 上推送订阅消息的确认截止日期? - How to modify ack deadline for a push subscription message on GCP Pub/Sub? Google Cloud Pub/Sub 按 ID 检索消息 - Google Cloud Pub/Sub retrieve message by ID R 库将消息发布到 Google Cloud Pub/Sub 主题 - R library to publish a message to Google Cloud Pub/Sub topics 如何将消息内容添加到 Google Pub/Sub 的结果中? - How to add the message content to the results in Google Pub/Sub? 在 pub sub 上发布消息时调用 google cloud http function - Invoke google cloud http function when message publish on a pub sub BigQuery 表订阅的 Pub/Sub 主题 - Pub/Sub Topic to BigQuery Table Subscription
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM