SQS消息不删除 [英] SQS Messages Not Deleting

查看:167
本文介绍了SQS消息不删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个小套的消息在SQS队列,即使送到AWS端点的删除请求返回一个200响应不会被删除的。该消息经本人申请罚款处理,并删除发送请求也没关系。

I have a small set of messages in an SQS queue, that are not deleted even though a deletion request sent to the AWS endpoint returns with a 200 response. The messages are processed by my application fine, and the deletion request is sent fine too.

我使用了Java AWS SDK 1.3.6。

I'm using the Java AWS SDK 1.3.6.

有其他人遇到这个问题呢?

Has anyone else experienced this problem?

推荐答案

哎呦 - 队列被意外设置为 defaultVisibilityTimeout = 0 。更改此为正值,解决了问题。

Whoops - the queue was accidentally set to defaultVisibilityTimeout=0. Changing this to a positive value fixed the problem.

这仍然引起了一些问题,但:

This still raises a few questions though:

  1. 为什么会这样只会影响一些消息?也许有些需要较长的时间来处理?
  2. 为什么亚马逊没有被删除的消息时返回200删除?
  3. 已删除失败的0秒窗口,因为它下降外(在这种情况下,为什么的任意的删除请求成功吗?),还是他们失败,因为另一个消费已经由拿起来时间接收到删除请求?
  1. Why did this only affect some messages? Perhaps some took longer to process?
  2. Why did Amazon return a 200 for delete when the messages weren't being deleted?
  3. Was the deletion failing because it fell outside of the 0-second window (in which case why did any deletion requests succeed?), or did they fail because another consumer had picked them up by the time the deletion request was received?

这篇关于SQS消息不删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆