awslabs / amazon-sqs-java-messaging-lib

This Amazon SQS Java Messaging Library holds the Java Message Service compatible classes, that are used for communicating with Amazon Simple Queue Service.
http://aws.amazon.com/sqs
Apache License 2.0
167 stars 146 forks source link

RangedAcknowledger logs "SQSMessageID: xxx with SQSMessageReceiptHandle: xxx does not exist." when acknowledge SQSTextMessage #176

Open IneverStop opened 1 year ago

IneverStop commented 1 year ago

Hi Amazon! I am using 1.0.0 version and JMS to receive SQSMessage:

    @JmsListener(destination = "xxx", containerFactory = "sqsContainerFactory")
    public void consumer(SQSTextMessage sqsTestMessage)
        throws JMSException {
        try {

        } catch (Exception var) {
        } finally {
            sqsTestMessage.acknowledge();
        }
    }

I have set sqsContainerFactory.sessionAcknowledgeMode to Session.CLIENT_ACKNOWLEDGE, But always got warning like

2023-01-18 14:06:59.057  WARN 55524 --- [enerContainer-7] c.a.s.j.acknowledge.RangedAcknowledger   : SQSMessageID: 37b9d428-a5e2-4a39-af5e-40ebd4e4cb7b with SQSMessageReceiptHandle: AQEBFJ+bCDXdYlmz1jzmeRFjkI5CYL9wzEoUT3fcx/ECrujyaFHAIka/piHG6FlIFLxsUNoj8ZDpvw/WgQ6rOgZNbO2OP/Q8YxOgIrlleGzkjlWhfhevrCA3BPY0uhlRFvo05V35RHPKAntQ0SVPRnEPb9O+BaOcPlQvHSxr/0OkMQOO4VNh92FOnuIp8dueLKl+NmAdLyH2tRhB7o7Z9JKLQzZ1DgFbnJddseaajiWP+MYGt8Ma9PFA08rpdDNYluYAzRYJAWDq5QG2tzVEyEWcefIDs8Ru+9saQatiEOH6G23yvaM9Lw+HOhnza5y4+Od8XjRsUYcpGGq1cTtYePlHtUrBWQCthfpuBg36ewRB2beHVNa4eZEUSk8z8Z06on4dfZBBsqMunDNw5fblQ/5mijIqMmA7Q/GGE7a219n+dnbgwnF20Fz+1a/JRCe1/8eV does not exist.

I am not sure is this a problem or should i upgrade the sdk version?

linyelai commented 1 year ago

Brother, is your problem solved? I have the same problem

IneverStop commented 1 year ago

Brother, is your problem solved? I have the same problem

我直接把这个日志去除了,似乎不影响消费和提交