Skip to content

Commit a597b9d

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 2463f92 commit a597b9d

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
@@ -1918,8 +1918,6 @@ There are, nevertheless, scenarios where the prefetch value should be low:
19181918
* Other special cases
19191919
19201920
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.
1921-
We also recommend using `prefetch = 1` with the `MANUAL` `ack` mode.
1922-
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.
19231921
19241922
See <<containerAttributes>>.
19251923

0 commit comments

Comments
 (0)