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

Main patch from tm-v0.34.16 #375

Merged
merged 13 commits into from
Mar 3, 2022
Merged

Main patch from tm-v0.34.16 #375

merged 13 commits into from
Mar 3, 2022

Conversation

tnasu
Copy link
Member

@tnasu tnasu commented Feb 28, 2022

tnasu and others added 2 commits February 28, 2022 12:22
* reduce some logs

* reduce error logs

* remove debug

Co-authored-by: Marko <[email protected]>
…7617)

* consensus: calculate prevote message delay metric (#7551)

This pull requests adds two metrics intended for use in calculating an experimental value for `MessageDelay`.

The metrics are as follows:
```
tendermint_consensus_complete_prevote_message_delay{chain_id="test-chain-aZbwF1"} 0.013025505

tendermint_consensus_quorum_prevote_message_delay{chain_id="test-chain-aZbwF1"} 0.013025505
```

 For more information on what these metrics are calculating, see #7202. The aim is to merge to backport these metrics to v0.34 and run nodes on a few popular chains with these metrics to determine the experimental values for `MessageDelay` on these popular chains and use these to select our default `SynchronyParams.MessageDelay` value.

Gauges allow us to overwrite the metric on each successive observation. We can then capture these metrics over time to track the highest and lowest observed value.

(cherry picked from commit 0c82ceaa5f7964c13247af9b64d72477af9dc973)

* fix merge conflicts

Co-authored-by: William Banfield <[email protected]>
Co-authored-by: William Banfield <[email protected]>
@codecov
Copy link

codecov bot commented Feb 28, 2022

Codecov Report

Merging #375 (00703b5) into main (f100d3f) will increase coverage by 0.20%.
The diff coverage is 77.52%.

@@            Coverage Diff             @@
##             main     #375      +/-   ##
==========================================
+ Coverage   65.01%   65.21%   +0.20%     
==========================================
  Files         278      278              
  Lines       37686    37743      +57     
==========================================
+ Hits        24500    24614     +114     
+ Misses      11396    11344      -52     
+ Partials     1790     1785       -5     
Impacted Files Coverage Δ
consensus/reactor.go 76.07% <ø> (+2.96%) ⬆️
statesync/stateprovider.go 0.00% <0.00%> (ø)
types/validator_set.go 92.88% <ø> (ø)
consensus/metrics.go 16.55% <39.13%> (-0.23%) ⬇️
p2p/pex/pex_reactor.go 79.67% <66.66%> (-0.70%) ⬇️
statesync/syncer.go 82.23% <94.11%> (+0.20%) ⬆️
consensus/state.go 73.39% <100.00%> (+0.94%) ⬆️
state/rollback.go 79.77% <100.00%> (+0.95%) ⬆️
types/vote_set.go 49.75% <100.00%> (+3.14%) ⬆️
types/priv_validator.go 56.81% <0.00%> (-2.28%) ⬇️
... and 15 more

tnasu and others added 5 commits February 28, 2022 14:06
…ckport #7625) (#7631)

* consensus: check proposal non-nil in prevote message delay metric (#7625)

(cherry picked from commit b6307c42e095c6f8e9e7c2518fb1004cc8f201a1)

* fix merge conflicts

Co-authored-by: William Banfield <[email protected]>
Co-authored-by: William Banfield <[email protected]>
When testing rollback feature in the Cosmos SDK, we found that the app hash
in Tendermint after rollback was the value after the latest block, rather than
before it.

Co-authored-by: Callum Waters <[email protected]>
Co-authored-by: yihuang <[email protected]>

(cherry picked from commit 8a238fdcb44461a4e029c8e7a4790c2d470d282b)

Inline factory function that does not exist in this branch.

Co-authored-by: M. J. Fromberger <[email protected]>
@tnasu tnasu changed the title Main tm-v0.34.16 Main patch from tm-v0.34.16 Feb 28, 2022
tnasu and others added 6 commits February 28, 2022 18:17
The various package locks got out of sync, reunify them.

Co-authored-by: M. J. Fromberger <[email protected]>
…ckport #7980) (#7997)

* Remove master from versions and copy it from the latest. (#7980)

(cherry picked from commit f939f962b19d87e7f23ec912e388ac9165fb1ff4)
@tnasu tnasu marked this pull request as ready for review February 28, 2022 10:39
@tnasu tnasu requested review from Kynea0b and torao as code owners February 28, 2022 10:39
@torao torao added the C: enhancement Classification: New feature or its request, or improvement in maintainability of code label Feb 28, 2022
Copy link
Contributor

@torao torao left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Kynea0b Kynea0b left a comment

Choose a reason for hiding this comment

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

LGTM

@tnasu tnasu merged commit 4eff4fc into Finschia:main Mar 3, 2022
@torao torao added C: release Classification: Work for release C: enhancement Classification: New feature or its request, or improvement in maintainability of code and removed C: enhancement Classification: New feature or its request, or improvement in maintainability of code C: release Classification: Work for release labels Mar 3, 2022
@tnasu tnasu deleted the main-tm-v0.34.16 branch April 28, 2022 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: enhancement Classification: New feature or its request, or improvement in maintainability of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants