Skip to content

Commit

Permalink
Recycle MessagePublishContext when publish fails at broker (apache#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdhabalia authored and merlimat committed Oct 31, 2017
1 parent 815bd70 commit 9a85134
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ public void completed(Exception exception, long ledgerId, long entryId) {
exception.getMessage()));
producer.cnx.completedSendOperation(producer.isNonPersistentTopic);
producer.publishOperationCompleted();
recycle();
});
} else {
if (log.isDebugEnabled()) {
Expand Down

0 comments on commit 9a85134

Please sign in to comment.