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

Add PeerDAS reconstruction metrics #173

Open
wants to merge 4 commits into
base: das
Choose a base branch
from

Conversation

KatyaRyazantseva
Copy link

PR Description

Implemented PeerDAS metrics:

  • Total count of reconstructed columns (counter)
  • Time taken to reconstruct columns (histogram)

Fixed Issue(s)

fixes #65

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Copy link
Collaborator

@zilm13 zilm13 left a comment

Choose a reason for hiding this comment

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

Looks good, just few nits

recoveryComplete();
} catch (final Throwable t) {
LOG.error(
"Failed to reconstruct data column sidecar {}", sidecar::toLogString, () -> t);
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be not very correct. We already have this sidecar, we want to reconstruct others. Let's log something like

                "Failed to reconstruct data column sidecars {}", sidecar.getSlotAndBlockRoot(), t);

}
}
}

private void recoveryComplete() {
recovered = true;
totalDataAvailabilityReconstructedColumns.inc(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Move promisesByColIdx.values().stream().mapToInt(List::size).sum() to variable and reuse, please

@KatyaRyazantseva
Copy link
Author

RecoveringSidecarRetrieverTest fails, need to implement stub histogram for tests

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.

2 participants