Skip to content
Merged

#3915 #3919

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
* @author Thomas Strauß
* @author Adrian Gygax
* @author Soby Chacko
* @author Jaeyeon Kim
*/
public class DefaultKafkaProducerFactory<K, V> extends KafkaResourceFactory
implements ProducerFactory<K, V>, ApplicationContextAware,
Expand Down Expand Up @@ -1181,13 +1182,11 @@ public void commitTransaction() throws ProducerFencedException {

@Override
public void abortTransaction() throws ProducerFencedException {
LOGGER.debug(() -> toString() + " abortTransaction()");
if (this.producerFailed != null) {
LOGGER.debug(() -> {
String message = this.producerFailed == null ? "" : this.producerFailed.getMessage();
return "abortTransaction ignored - previous txFailed: " + message
+ ": " + this;
});
Exception producerFailedToUse = this.producerFailed;
LOGGER.debug(() -> this + " abortTransaction()");
if (producerFailedToUse != null) {
LOGGER.debug(() -> "abortTransaction ignored - previous txFailed: " + producerFailedToUse.getMessage()
+ ": " + this);
}
else {
try {
Expand Down