Commit c3cc65d
authored
GH-3079: Allow ACKs within the ShutdownTimeout period
Fixes: #3079
Issue link: #3079
Remove `cancelled()` condition from the `BlockingQueueConsumer.commitIfNecessary()` to allow initiated acks to be committed.
The cancelled consumer means no new deliveries, but that does not mean we cannot ack outstanding messages.
Actually, this is a leftover after previous fix with assumption that messages have to be returned to the queue with `Recovery` command when consumer is cancelled.
Signed-off-by: Marco Cozzi <[email protected]>
**Auto-cherry-pick to `3.2.x` & `3.1.x`**1 parent 87d4d75 commit c3cc65d
File tree
1 file changed
+2
-2
lines changed- spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
888 | 888 | | |
889 | 889 | | |
890 | 890 | | |
891 | | - | |
| 891 | + | |
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
| |||
909 | 909 | | |
910 | 910 | | |
911 | 911 | | |
912 | | - | |
| 912 | + | |
913 | 913 | | |
914 | 914 | | |
915 | 915 | | |
| |||
0 commit comments