Skip to content

Commit 874007f

Browse files
won-seoopclaude
andcommitted
GH-3142: Clarify republishToDlq default behaviour in docs
The previous description opened with "By default, messages that fail after retries are exhausted are rejected", which implies the default is false (reject). The actual default is true (republish with extra headers). Rewrite the description to lead with the true default behaviour and describe the false case explicitly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3e9eed1 commit 874007f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docs/modules/ROOT/pages/rabbit/rabbit_overview/rabbitmq-consumer-properties.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,8 @@ When `republishToDlq` is `true`, specifies the delivery mode of the republished
272272
+
273273
Default: `DeliveryMode.PERSISTENT`
274274
republishToDlq::
275-
By default, messages that fail after retries are exhausted are rejected.
276-
If a dead-letter queue (DLQ) is configured, RabbitMQ routes the failed message (unchanged) to the DLQ.
277-
If set to `true`, the binder republishs failed messages to the DLQ with additional headers, including the exception message and stack trace from the cause of the final failure.
275+
When set to `true` (the default), the binder republishes failed messages to the dead-letter queue (DLQ) with additional headers, including the exception message and stack trace from the cause of the final failure.
276+
When set to `false`, messages that fail after retries are exhausted are rejected; if a dead-letter queue is configured, RabbitMQ then routes the rejected message (unchanged, without extra headers) to the DLQ.
278277
Also see the xref:rabbit/rabbit_overview/rabbitmq-consumer-properties.adoc#spring-cloud-stream-rabbit-frame-max-headroom[frameMaxHeadroom property].
279278
+
280279
Default: `true`

0 commit comments

Comments
 (0)