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

fix: Outbox retries forever if target domain is down #1243

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

bstasyszyn
Copy link
Contributor

The ActivityPub Outbox now uses the AMQP Pub/Sub subsystem for retrying an unreachable domain. When a destination URL is unreachable, the AMQP message is NACK'ed and the operation is retried with a backoff and maximum number of attempts so as not to retry forever.

closes #1242

Signed-off-by: Bob Stasyszyn Bob.Stasyszyn@securekey.com

The Outbox handler now uses the AMQP Pub/Sub subsystem for retrying an unreachable domain. When a destination URL is unreachable then the AMQP message is NACK'ed and the operation is retried with a backoff and maximum number of attempts so as not to retry forever.

closes trustbloc#1242

Signed-off-by: Bob Stasyszyn <Bob.Stasyszyn@securekey.com>
@cla-bot cla-bot bot added the cla-signed label Apr 13, 2022
@codecov
Copy link

codecov bot commented Apr 13, 2022

Codecov Report

Merging #1243 (42389de) into main (a60cc9c) will decrease coverage by 0.02%.
The diff coverage is 86.48%.

@@            Coverage Diff             @@
##             main    #1243      +/-   ##
==========================================
- Coverage   87.89%   87.87%   -0.03%     
==========================================
  Files         171      171              
  Lines       17289    17290       +1     
==========================================
- Hits        15197    15194       -3     
- Misses       1332     1336       +4     
  Partials      760      760              
Impacted Files Coverage Δ
pkg/anchor/handler/credential/handler.go 76.79% <0.00%> (ø)
pkg/observer/observer.go 82.70% <ø> (ø)
pkg/activitypub/service/outbox/outbox.go 89.77% <88.88%> (+1.41%) ⬆️
...pub/service/inbox/httpsubscriber/httpsubscriber.go 88.88% <0.00%> (-8.89%) ⬇️
...ivitypub/service/vct/proofmonitoring/monitoring.go 77.77% <0.00%> (-2.78%) ⬇️
cmd/orb-server/startcmd/start.go 69.31% <0.00%> (+0.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a60cc9c...42389de. Read the comment docs.

@fqutishat fqutishat merged commit 8fcbde8 into trustbloc:main Apr 13, 2022
@bstasyszyn bstasyszyn deleted the 1242 branch April 14, 2022 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ActivityPub Outbox retries forever if a domain is unreachable
2 participants