Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Collator protocol debug #5129

Merged
merged 7 commits into from
Mar 16, 2022
Merged

Conversation

vstakhov
Copy link
Contributor

This PR is intended to add some missing debug messages to the collator protocol part.

@vstakhov vstakhov added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. labels Mar 15, 2022
@@ -662,6 +662,14 @@ async fn fetch_collation<Context>(

if state.peer_data.get(&peer_id).map_or(false, |d| d.has_advertised(&relay_parent)) {
request_collation(ctx, state, relay_parent, para_id, peer_id, tx).await;
} else {
Copy link
Member

Choose a reason for hiding this comment

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

This does also trigger if there is no peer data for that peer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I think this message shoul be on the warn! level as it is quite unlikely.

node/network/collator-protocol/src/validator_side/mod.rs Outdated Show resolved Hide resolved
@rphmeier
Copy link
Contributor

bot merge

@paritytech-processbot paritytech-processbot bot merged commit a3908d2 into master Mar 16, 2022
@paritytech-processbot paritytech-processbot bot deleted the vstakhov-collator-protocol-debug branch March 16, 2022 06:43
sandreim pushed a commit that referenced this pull request Mar 16, 2022
* add two more timers

* Update node/network/availability-recovery/src/metrics.rs

* Try to improve comments spelling

* Cargo fmt iteration

* Add some presumably useful debugging for collator protocol

* Address review comments

Co-authored-by: Bernhard Schuster <bernhard@ahoi.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants