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: Stop monitoring anchor once witness list is exhausted #1561

Merged
merged 1 commit into from
May 17, 2023

Conversation

bstasyszyn
Copy link
Contributor

The anchor monitor process will remove all in-process anchor status records after all witnesses have been exhausted.

This commit also adds more information to existing logs (such as anchorUri) and changes the level from DEBUG to INFO for some of the important logs so that issues may be more easily debugged.

@cla-bot cla-bot bot added the cla-signed label May 17, 2023
The anchor monitor process will revove all in-process anchor status records after all witnesses have been exausted.

This commit also adds more information to existing logs (such as anchorUri) and changes the level from DEBUG to INFO for some of the important logs so that issues may be more easily debugged.

Signed-off-by: Bob Stasyszyn <Bob.Stasyszyn@securekey.com>
@codecov
Copy link

codecov bot commented May 17, 2023

Codecov Report

Patch coverage: 83.01% and project coverage change: -0.02 ⚠️

Comparison is base (cfe12d7) 88.19% compared to head (0b4a6f2) 88.17%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1561      +/-   ##
==========================================
- Coverage   88.19%   88.17%   -0.02%     
==========================================
  Files         227      227              
  Lines       21375    21402      +27     
==========================================
+ Hits        18852    18872      +20     
- Misses       1619     1624       +5     
- Partials      904      906       +2     
Impacted Files Coverage Δ
cmd/orb-server/startcmd/params.go 86.14% <ø> (ø)
pkg/store/anchorstatus/store.go 87.43% <72.00%> (-2.09%) ⬇️
pkg/anchor/handler/proof/handler.go 90.07% <85.71%> (-0.23%) ⬇️
...ctivitypub/service/activityhandler/inboxhandler.go 83.65% <100.00%> (+0.05%) ⬆️
pkg/anchor/witness/policy/inspector/inspector.go 96.11% <100.00%> (ø)
.../anchor/witness/policy/selector/random/selector.go 100.00% <100.00%> (ø)
pkg/anchor/writer/writer.go 88.08% <100.00%> (ø)
pkg/document/updatehandler/decorator/decorator.go 100.00% <100.00%> (ø)
pkg/vct/logmonitoring/monitor.go 94.56% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

2 participants