Log resync at Infow. (#2114)

* Log resync at Infow.

Seeing potentially large sequence number jumps on a resync.
And it seems to happen on a lot of subscribe/unsubscribe.
Logging at Infow to understand better.

Probably need to find a way to avoid resync. But, logging for now to
check if I can catch one.

* Remove resync and log large sequence number jumps
This commit is contained in:
Raja Subramanian
2023-09-30 08:42:46 +05:30
committed by GitHub
parent 39d0af4381
commit ee3a7c01bc
3 changed files with 15 additions and 99 deletions
+4
View File
@@ -302,6 +302,10 @@ func (r *RTPStatsSender) Update(
r.setSnInfo(extSequenceNumber, r.extHighestSN, uint16(pktSize), uint8(hdrSize), uint16(payloadSize), marker, true)
}
} else { // in-order
if gapSN >= cNumSequenceNumbers {
r.logger.Warnw("large sequence number gap", nil, "prev", r.extHighestSN, "curr", extSequenceNumber, "gap", gapSN)
}
// update gap histogram
r.updateGapHistogram(int(gapSN))