Repository navigation
BE-1255: Add the relay loop that publishes the entity outbox - #10703
Draft
TimDiekmann wants to merge 1 commit into
Draft
TimDiekmann wants to merge 1 commit into
TimDiekmann wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## t/be-1254-store-a-relays-outbox-cursor-and-lock #10703 +/- ##
===================================================================================
- Coverage 70.37% 70.35% -0.03%
===================================================================================
Files 2142 2142
Lines 226459 226527 +68
Branches 9820 9820
===================================================================================
Hits 159367 159367
- Misses 65041 65109 +68
Partials 2051 2051
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🌟 Purpose
Nothing reads the entity outbox and hands its events on yet. This PR adds the loop that does, to
hash-graph-relay.🔍 Changes
Publisheris where the relay publishes an event. The relay moves its cursor past an event oncepublishreturnsOk.publish_pagereads one page of the outbox after the relay's cursor, publishes it in cursor order and stores the cursor of the last published event. A failed publication ends the page, so the cursor never moves past it.runtakes the relay's lock, then publishes page by page until it is told to shut down. It returns every error, so its supervisor restarts it.test:integrationtask, because its tests need the database.hash-graph relaysubcommand follows.runhas no test of its own.