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

Config: Archival mode is no longer automatically enabled when netAddress is s… #5904

Merged
merged 2 commits into from Jan 19, 2024

Conversation

gmalouf
Copy link
Contributor

@gmalouf gmalouf commented Jan 12, 2024

Summary

Archival mode is no longer automatically enabled when netAddress is set in configuration (allowing for non-archival relays). Updated relay profile to reflect more ideal non-archival relay properties (number of catchpoints retained, 20k block history lookback, etc.

Test Plan

Existing tests should pass.

@algorandskiy
Copy link
Contributor

I think test/e2e-go/cli/goal/expect/catchpointCatchupTest.exp needs to set Archival=true and CatchpointFileHistoryLength=1000 explicitly, since with the other test settings older catchpoints get deleted. I had the same issue in my PR when disabled Archival (not sure why, I did not touch the CatchpointFileHistoryLength option).

There are also two tests TestLocal_MergeConfig and TestArchivalIfRelay that explicitly tested the old config options adjustments.

@gmalouf gmalouf linked an issue Jan 17, 2024 that may be closed by this pull request
…et in configuration (allowing for non-archival relays). Updated relay profile to reflect more ideal non-archival relay properties (number of catchpoints retained, 20k block history lookback, etc.
Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (434dca0) 55.99% compared to head (359a653) 55.95%.

Files Patch % Lines
cmd/algocfg/profileCommand.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5904      +/-   ##
==========================================
- Coverage   55.99%   55.95%   -0.04%     
==========================================
  Files         478      478              
  Lines       67588    67589       +1     
==========================================
- Hits        37848    37822      -26     
- Misses      27185    27204      +19     
- Partials     2555     2563       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gmalouf gmalouf marked this pull request as ready for review January 18, 2024 19:26
Copy link
Contributor

@onetechnical onetechnical left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine, though we should do some archival -> non-archival upgrade testing to observe behavior. This may have some interesting performance characteristics.

cmd/algocfg/profileCommand.go Show resolved Hide resolved
cmd/algocfg/profileCommand.go Show resolved Hide resolved
@gmalouf gmalouf merged commit 877090b into algorand:master Jan 19, 2024
18 checks passed
@gmalouf gmalouf deleted the updated-relay-profile branch January 19, 2024 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants