Merge pull request #591 from corda/aslemmer-ENT-1647

ENT-1647: Ack duplicate messages
This commit is contained in:
Andras Slemmer 2018-03-21 18:45:09 +00:00 committed by GitHub
commit 34d5f72f51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,6 @@ class MessagingExecutor(
if (job is Job.Send) {
job.sentFuture.setException(exception)
}
session.rollback()
}
}
}

View File

@ -448,6 +448,7 @@ class P2PMessagingClient(val config: NodeConfiguration,
deliver(cordaMessage, artemisMessage)
} else {
log.trace { "Discard duplicate message ${cordaMessage.uniqueMessageId} for ${cordaMessage.topic}" }
artemisMessage.individualAcknowledge()
}
}
}