You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The duration in FirstByte is taken from phaseStartTime (startTime in #321) which is at the top of RetrieveFromAsyncCandidates which is prior to collecting the first batch of candidates. The other retrievers take this duration from the beginning of asking the candidate for the data. But for Bitswap it's before we even collect candidates.
Likely solution
The bytesWrittenCb should be moved down lower and a new start clock time recorded before it. That new start time can be used by both the Started event and the FirstByte duration calculation.
The text was updated successfully, but these errors were encountered:
Arising out of this: https://github.com/filecoin-project/lassie/pull/321/files#r1243072856
Discussed today in a call and agreed that we should roughly align it to the other retrievers.
This block:
lassie/pkg/retriever/bitswapretriever.go
Lines 143 to 164 in 46c970b
The duration in FirstByte is taken from
phaseStartTime
(startTime
in #321) which is at the top ofRetrieveFromAsyncCandidates
which is prior to collecting the first batch of candidates. The other retrievers take this duration from the beginning of asking the candidate for the data. But for Bitswap it's before we even collect candidates.Likely solution
The
bytesWrittenCb
should be moved down lower and a newstart
clock time recorded before it. That newstart
time can be used by both the Started event and the FirstByte duration calculation.The text was updated successfully, but these errors were encountered: