rbeckman-nextgen / test-mc6

0 stars 0 forks source link

Remove attachment on completion does not remove destination attachment #4164

Closed rbeckman-nextgen closed 4 years ago

rbeckman-nextgen commented 4 years ago

When using the "Remove content on completion" and "Remove attachment on completion" the remove job does not include the destination attachments tables. This leads to bloated database and forces users to manually run db queries to clear the destination attachments table. Or constantly remove all messages from the channel via admin dashboard.

Please complete the "Remove attachments on completion" feature to behave like the "Remove content on completions" so that destination attachments and content are also covered.

Imported Issue. Original Details: Jira Issue Key: MIRTH-4312 Reporter: addis144 Created: 2018-08-03T07:32:43.000-0700

rbeckman-nextgen commented 4 years ago

The attachments aren't specific to either the source or destination connectors but rather the overall message. I've tested it just now and the attachments are being removed as intended. Of course that doesn't necessarily mean that disk space will be reclaimed immediately. Many database servers have options to vacuum (or setup autovacuum) to do that periodicially.

Also note that currently the remove content/attachments features do not remove anything for errored messages. That is intentional because often time if an error occurred the message may need to be reprocessed, and that wouldn't be possible if the content has already been removed.

Imported Comment. Original Details: Author: narupley Created: 2018-08-03T08:26:02.000-0700