Manual Retry Publication
Canonical Items that have not been successfully published to a target system are available for retry. A publication retry can be started manually using the available mechanisms for performing a standard publication and setting an additional flag when creating the PublicationActionData.
Canonical Item Publication Statuses
- IN_PROGRESS
- SUCCESS
- FAILURE
- IGNORED
Canonical items with either a FAILURE or IGNORED status or ones with no status, are included in future publication events.
When You Might Want to Retry Publication
If a publication to a target system fails for some or all items, you may wish to retry the publication once the error is corrected. The error may, for example, have been a network error or items may been incorrectly filtered out of the publication. In such a case, you can attempt to manually publish the canonical items with a canonical item publication status of FAILURE or IGNORED.
Publishing Select Canonical Items
The publication attempts to manually publish any canonical item that has a canonical item publication status of FAILURE or IGNORED. It does not include items that have been created, updated, or marked as deleted to a given target system. The retry includes all items that have a CanonicalItemPublicationStatus status of IGNORED or FAILURE for a given target system.
POST - http://{host:port}/datahub-webapp/v1/pools/{poolName}/publications
{
"poolName": "GLOBAL",
"type":"RETRY_ITEMS_PUBLICATION",
"targetSystemPublications": [
{
"targetSystemName": "First_Target_System"
}
]
}
You must add the additional field "type":"RETRY_ITEMS_PUBLICATION" to the REST request body. Setting this action type ensures that no new items are included in the publication, and the publication only includes existing FAILURE or IGNORED items.
Automatic Retry when Publishing in Memory
Assume the datahub.config.mode property is set to IN_MEMORY. Assume also that target systems have been defined for pools in the target.system.publication.configuration property. In this case, a publication retry is automatically launched after all publication actions are complete. The automatic publication retry works exactly as described in this document. The exception is the collected canonical items are loaded into memory, published in memory, and then written to the target item cache. Once the target adapter finishes, the canonical item statuses are set to persist. The publication action status is set to persist. Then the target item cache is flushed.