wso2 / andes

Apache License 2.0
39 stars 128 forks source link

Modify expirery+arrival times upon restore from DLC #967

Closed abeykoon closed 6 years ago

abeykoon commented 6 years ago

Purpose

Fixes : wso2/product-ei#1914

Goals

This improvement is to modify message expire time when moving message

Back to the original queue Reroute to a different queue This will modify expire time of the original message to 0 to indicate no expiration.

Approach

Calculation is done by

New expire time = Current time + (original expire time - original arrival time)

User stories

If you reroute or restore DLC messages, if expire time was specified in original message, it is ignored and message will never expire when rerouting/restoring.

Release note

Brief description of the new feature or bug fix as it will appear in the release notes

Documentation

Update: https://docs.wso2.com/display/MB320/Using+the+Dead+Letter+Channel (relevant page on next version)

Training

N/A

Certification

N/A - small feature

Marketing

N/A

Automation tests

Security checks

Samples

N/A

Related PRs

https://github.com/wso2/andes/pull/965

Migrations (if applicable)

N/A

Test environment

Java 8 (Oracle) , Mac OS X

Learning

N/A