Skip to content

Commit 3224404

Browse files
garyrussellartembilan
authored andcommitted
Remove Incorrect Doc Re Prefetch with MANUAL Acks
This commit b945d1c incorrectly added text about reducing the prefetch to 1 when using manual acks. While changing it to 1 fixed a test case (`testListenerRecoversFromBogusDoubleAck`) it should not have been a general recommendation since acking the same message twice is not a valid situation. **cherry-pick to all supported branches**
1 parent f1b1d59 commit 3224404

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/reference/asciidoc/amqp.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,8 +1658,6 @@ There are, nevertheless, scenarios where the prefetch value should be low:
16581658
* Other special cases
16591659
16601660
Also, with low-volume messaging and multiple consumers (including concurrency within a single listener container instance), you may wish to reduce the prefetch to get a more even distribution of messages across consumers.
1661-
We also recommend using `prefetch = 1` with the `MANUAL` `ack` mode.
1662-
The `basicAck` is an asynchronous operation and, if something wrong happens on the Broker (double `ack` for the same delivery tag, for example), you end up with processed subsequent messages in the batch that are unacknowledged on the Broker, and other consumers may see them.
16631661
16641662
See <<containerAttributes>>.
16651663

0 commit comments

Comments
 (0)