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

feat: Add alternate sources for CAS files during Observer processing #638

Merged
merged 1 commit into from
Jan 25, 2022

Conversation

bstasyszyn
Copy link
Contributor

When the Observer processes a batch, it reads various Sidetree files from CAS, starting with the core index file. If a file is not found, then one or more alternate sources are checked. This is useful in recovery, i.e. when data at the original source is lost but may be recovered by reading it at an alternate source.

closes #637

Signed-off-by: Bob Stasyszyn [email protected]

When the Observer processes a batch, it reads various Sidetree files from CAS, starting with the core index file. If a file is not found, then one or more alternate sources are checked. This is useful in recovery, i.e. when data at the original source is lost but may be recovered by reading it at an alternate source.

closes trustbloc#637

Signed-off-by: Bob Stasyszyn <[email protected]>
@cla-bot cla-bot bot added the cla-signed label Jan 25, 2022
@codecov
Copy link

codecov bot commented Jan 25, 2022

Codecov Report

Merging #638 (a185c6b) into main (717ab30) will decrease coverage by 0.05%.
The diff coverage is 91.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #638      +/-   ##
==========================================
- Coverage   93.72%   93.67%   -0.06%     
==========================================
  Files          75       75              
  Lines        4066     4093      +27     
==========================================
+ Hits         3811     3834      +23     
- Misses        141      144       +3     
- Partials      114      115       +1     
Impacted Files Coverage Δ
pkg/versions/1_0/txnprovider/provider.go 97.48% <91.83%> (-0.90%) ⬇️

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 717ab30...a185c6b. Read the comment docs.

@bstasyszyn bstasyszyn merged commit 838eba9 into trustbloc:main Jan 25, 2022
@bstasyszyn bstasyszyn deleted the alternatesources branch January 25, 2022 22:24
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.

Allow for alternate sources for Sidetree files during Observer processing
3 participants