Skip to content

[Bug] Proxy drops receipt handles when offline cleanup task submission is rejected #10941

Description

@Aias00

Problem

DefaultReceiptHandleManager.clearGroup removes a receipt-handle group from receiptHandleGroupMap before submitting its cleanup task to the bounded returnHandleGroupWorkerService.

If the executor rejects the submission because its queue is full or it is shutting down, submit throws and the removed group is not restored. The Proxy then loses the handle state without sending the intended clear/renew request and cannot retry it on the next scheduled scan.

Expected behavior

A rejected cleanup submission must retain or restore the group so a later scheduled pass can retry cleanup. The rejection should be logged without leaking handle contents.

Scope

Handle RejectedExecutionException around clearGroup task submission and add a regression test that forces rejection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions