FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

Reduce excess summarization

Open arinwt opened this issue 7 years ago • 2 comments

Currently the summarizer cannot listen for summary acks or nacks to make better decisions about when to summarize. Sometimes the summarizer will send two consecutive summary ops with the same parent, which causes the second one to be (correctly) rejected by the server.

The summarizer currently has 3 methods for summarizing:

  1. On receiving an op, after a certain number of ops
  2. On receiving an op, after a certain amount of time
  3. On a timer set for a certain amount of time after the last op was received (idle timer)

This logic should be cleaned up to better align the above conditions with each other (when any of the 3 are met, it should reset all 3 if it is not already). And further, we should have another time threshold to wait for an ack/nack before trying to summarize again.

arinwt avatar Sep 16 '19 22:09 arinwt

PR #47 is a quick fix to this in release 0.9 (not yet merged to master). It adds a "pending" phase where the summary has been sent, but has not yet heard a SummaryAck or SummaryNack. That PR does not verify that the incoming SummaryAck/Nack is actually for its pending summary.

Will need to address more fully in a PR to master.

arinwt avatar Sep 18 '19 21:09 arinwt

PR #125 fixes this by matching the summary ack/nack to the sent summary.

arinwt avatar Sep 30 '19 03:09 arinwt