The Compose Restart Process Recovery
There are situations with Data Hub when you are processing canonical data items and your server crashes. Data Hub can recover from these situations with no loss of data and with complete data integrity.
You have triggered a large composition task, and it has been running for some time. Suddenly, the building has a complete, sustained power loss and the server goes down. What happens now? Data Hub responds as follows:
- When the server restarts, Data Hub checks the status of its actions and sees there is a composition action IN_PROGRESS.
- In response, Data Hub automatically goes into recovery mode. This process happens and is completed before Data Hub fires the DataHubInitializationCompletedEvent.
- Data Hub then looks at each canonical item created by the composition action ID.
- If the canonical item is not a merged canonical item, it is deleted.
- If the canonical item is a merged canonical item, Data Hub does the following:
- Uses the integrationKey of the item to look up the original canonical item.
- Changes the status of the original canonical item from ARCHIVE to SUCCESS.
- Deletes the two other canonical items used in the Merge operation.
- Once all canonical items associated with the incomplete composition action ID have been deleted, Data Hub restarts the composition action reusing the original composition ID.
It is a full rollback to the status of the composition action before any data had been processed.