$ profile kafka, function definition = bill, enable-dlq=true, max-attempts=3 bill attempts: o-1=1 o-2=3 o-3=1 billed: o-1=1 o-2=0 o-3=1 (o-3 was behind the poison record on the same partition) DLQ topic invoices-k3.billing.dlq holds 1 record(s) payload: {"orderId":"o-2","customerId":"bob","total":-1.0} header x-original-topic = invoices-k3 header x-original-partition = 0 header x-original-offset = 1 header x-original-timestamp = (epoch millis, omitted) header x-original-timestamp-type = CreateTime header x-exception-fqcn = org.springframework.messaging.MessagingException header x-exception-message = error occurred in message handler [org.springframework.cloud.stream.function.FunctionConfi... header x-exception-stacktrace = org.springframework.messaging.MessagingException: Retry policy for operation 'org.springfr... stack trace mentions the real cause (IllegalArgumentException: Refusing to bill o-2): true