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

Change the default consensus.timeout_commit to 1500ms. #1600

Merged
merged 7 commits into from
Jun 21, 2023

Conversation

SpicyLemon
Copy link
Contributor

@SpicyLemon SpicyLemon commented Jun 21, 2023

Description

  • Change the default consensus.timeout_commit to 1500ms.
  • Make the pre-upgrade command always update the consensus.timeout_commit to 1500ms.
  • Change the consensus.timeout_commit log warning to only log about values being too large (more than 3500ms).

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@SpicyLemon SpicyLemon requested a review from a team as a code owner June 21, 2023 20:13
@codecov
Copy link

codecov bot commented Jun 21, 2023

Codecov Report

Merging #1600 (3eb9044) into main (959b0d8) will increase coverage by 0.03%.
The diff coverage is 89.47%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1600      +/-   ##
==========================================
+ Coverage   63.55%   63.58%   +0.03%     
==========================================
  Files         223      223              
  Lines       28362    28372      +10     
==========================================
+ Hits        18026    18041      +15     
+ Misses       9149     9144       -5     
  Partials     1187     1187              
Impacted Files Coverage Δ
cmd/provenanced/config/manager.go 57.87% <ø> (ø)
cmd/provenanced/cmd/root.go 68.90% <88.23%> (+2.97%) ⬆️
cmd/provenanced/cmd/pre_upgrade.go 82.35% <100.00%> (ø)

Copy link
Member

@iramiller iramiller left a comment

Choose a reason for hiding this comment

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

LGTM

@SpicyLemon SpicyLemon merged commit 6d89d50 into main Jun 21, 2023
40 checks passed
@SpicyLemon SpicyLemon deleted the dwedul/timeout-to-1.5 branch June 21, 2023 22:40
SpicyLemon added a commit that referenced this pull request Jun 21, 2023
* Change the DefaultConsensusTimeoutCommit to 1500ms.

* Update the pre-upgrade command to change all consensus.timeout_commit settings to 1500ms.

* Update the log warning about the consensus.timeout_commit value.

* Add changelog entry.

* Fix some broken unit tests.

* Make those tests I just fixed more robust. They now just use the provconfig.DefaultConsensusTimeoutCommit value instead of a hard-coded value.

* Add some unit tests on the config warner.
SpicyLemon added a commit that referenced this pull request Jun 21, 2023
* Change the DefaultConsensusTimeoutCommit to 1500ms.

* Update the pre-upgrade command to change all consensus.timeout_commit settings to 1500ms.

* Update the log warning about the consensus.timeout_commit value.

* Add changelog entry.

* Fix some broken unit tests.

* Make those tests I just fixed more robust. They now just use the provconfig.DefaultConsensusTimeoutCommit value instead of a hard-coded value.

* Add some unit tests on the config warner.
@SpicyLemon
Copy link
Contributor Author

This was related to #1569

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants