Replies: 3 comments 3 replies
-
Please don't ask questions in issues - did you not read the issue template? The You can define a second template bean for producer-initiated transactions and give it a different transaction id prefix. /**
* Set a transaction id prefix to override the prefix in the producer factory.
* @param transactionIdPrefix the prefix.
* @since 2.3
*/
public void setTransactionIdPrefix(String transactionIdPrefix) { If your brokers are 2.5 or later you don't have to worry about this at all and always use a randomized value - EOSMode has been BETA (now called V2) since 2.6. |
Beta Was this translation helpful? Give feedback.
-
I tried to unlock and reopen your original issue (it was locked when I converted it to a discussion), but after unlocking, GitHub wouldn't let me reopen it. So I opened this instead... #2016 |
Beta Was this translation helpful? Give feedback.
-
I opened a PR against Boot - the functionality is already there; we just need to expose the property. |
Beta Was this translation helpful? Give feedback.
-
As stated in the docs:
Please, clarify how it can be achievable with Spring Kafka (2.7.9) because we don't see this option. You either can set static or randomized transactional id for both instances with
spring.kafka.producer.transaction-id-prefix
.Beta Was this translation helpful? Give feedback.
All reactions