mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
[CST-10641] fix wrong status for LDN Notification
This commit is contained in:
@@ -238,9 +238,11 @@ public class LDNMessageServiceImpl implements LDNMessageService {
|
||||
} catch (JsonSyntaxException jse) {
|
||||
result = -1;
|
||||
log.error("Unable to read JSON notification from LdnMessage " + msg, jse);
|
||||
msg.setQueueStatus(LDNMessageEntity.QUEUE_STATUS_FAILED);
|
||||
} catch (Exception e) {
|
||||
result = -1;
|
||||
log.error(e);
|
||||
msg.setQueueStatus(LDNMessageEntity.QUEUE_STATUS_FAILED);
|
||||
} finally {
|
||||
msg.setQueueAttempts(msg.getQueueAttempts() + 1);
|
||||
update(context, msg);
|
||||
|
Reference in New Issue
Block a user