Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recovery after domain restart #481

Closed
bstasyszyn opened this issue Jun 8, 2021 · 0 comments · Fixed by #918
Closed

Recovery after domain restart #481

bstasyszyn opened this issue Jun 8, 2021 · 0 comments · Fixed by #918
Assignees
Labels
enhancement New feature or request

Comments

@bstasyszyn
Copy link
Contributor

When all servers in a domain go down then anchor credential announcements may have been missed. On startup, do we need to scan the outbox of the domains we are following and processing the anchors that were missed?

@bstasyszyn bstasyszyn self-assigned this Jun 8, 2021
@bstasyszyn bstasyszyn added the enhancement New feature or request label Jun 8, 2021
bstasyszyn added a commit to bstasyszyn/orb that referenced this issue Dec 3, 2021
Registered a task with the Task Manager that periodically queries the outbox of the services that the domain is following and processes any missing anchor events from "Create" and "Announce" activities. When a new domain is on-boarded, it starts following other domains (ActivityPub services). The synchronization task should then start from the beginning of the outboxes of these domains and process all anchor events (from "Create" and "Announce" activities). Also, if all instances of a domain should go down for a period of time then "Create" and "Announce" activities may be missed. As soon as the domain comes back online the task will start synchronizing from where it last left off in order to process the missing anchor events.

closes trustbloc#481

Signed-off-by: Bob Stasyszyn <Bob.Stasyszyn@securekey.com>
bstasyszyn added a commit to bstasyszyn/orb that referenced this issue Dec 3, 2021
Registered a task with the Task Manager that periodically queries the outbox of the services that the domain is following and processes any missing anchor events from "Create" and "Announce" activities. When a new domain is on-boarded, it starts following other domains (ActivityPub services). The synchronization task should then start from the beginning of the outboxes of these domains and process all anchor events (from "Create" and "Announce" activities). Also, if all instances of a domain should go down for a period of time then "Create" and "Announce" activities may be missed. As soon as the domain comes back online the task will start synchronizing from where it last left off in order to process the missing anchor events.

closes trustbloc#481

Signed-off-by: Bob Stasyszyn <Bob.Stasyszyn@securekey.com>
bstasyszyn added a commit to bstasyszyn/orb that referenced this issue Dec 3, 2021
Registered a task with the Task Manager that periodically queries the outbox of the services that the domain is following and processes any missing anchor events from "Create" and "Announce" activities. When a new domain is on-boarded, it starts following other domains (ActivityPub services). The synchronization task should then start from the beginning of the outboxes of these domains and process all anchor events (from "Create" and "Announce" activities). Also, if all instances of a domain should go down for a period of time then "Create" and "Announce" activities may be missed. As soon as the domain comes back online the task will start synchronizing from where it last left off in order to process the missing anchor events.

closes trustbloc#481

Signed-off-by: Bob Stasyszyn <Bob.Stasyszyn@securekey.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant