Skip to content
Closed

#3915 #3916

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 @@ -1181,13 +1181,11 @@ public void commitTransaction() throws ProducerFencedException {

@Override
public void abortTransaction() throws ProducerFencedException {
Exception producerFailedToUse = this.producerFailed;
LOGGER.debug(() -> toString() + " abortTransaction()");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are already here, would you mind fixing this line as well?

Suggested change
LOGGER.debug(() -> toString() + " abortTransaction()");
LOGGER.debug(() -> this + " abortTransaction()");

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