FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

completeAndLogOp exception fails summarizer

Open vladsud opened this issue 6 years ago • 5 comments

last 5 days:

2846 errors in fluid:telemetry:Summarizer:Summarizing_cancel of the following type. Affects only 3 documents, with one document having 2778 hits, another 67, and third - just one hit.

@arinwt, this issue does not show up as error anywhere (category on this event is "performance") and that's bug by itself that needs to be addressed @anthony-murphy, any chance you can take a look why we fail there?

AssertionError: false == true at C.completeAndLogOp (https://officefluidprodversionedcdn.azureedge.net/3373737/app/calendarioComponent~scriptorComponent~tableroComponent.js:54:3808) at C.applyInsertOp (https://officefluidprodversionedcdn.azureedge.net/3373737/app/calendarioComponent~scriptorComponent~tableroComponent.js:54:3732) at C.applyRemoteOp (https://officefluidprodversionedcdn.azureedge.net/3373737/app/calendarioComponent~scriptorComponent~tableroComponent.js:54:8745) at C.applyMsg (https://officefluidprodversionedcdn.azureedge.net/3373737/app/calendarioComponent~scriptorComponent~tableroComponent.js:54:9183) at a.processMergeTreeMsg (https://officefluidprodversionedcdn.azureedge.net/3373737/app/calendarioComponent~scriptorComponent~tableroComponent.js:68:6071) at a.processCore (https://officefluidprodversionedcdn.azureedge.net/3373737/app/calendarioComponent~scriptorComponent~tableroComponent.js:68:4902) at a.process (https://officefluidprodversionedcdn.azureedge.net/3373737/app/officeFluidContainer.js:159:2201) at Object.process (https://officefluidprodversionedcdn.azureedge.net/3373737/app/officeFluidContainer.js:159:1589) at d.process (https://officefluidprodversionedcdn.azureedge.net/3373737/app/officeFluidContainer.js:107:298) at S.loadChannel (https://officefluidprodversionedcdn.azureedge.net/3373737/app/officeFluidContainer.js:126:1850)

vladsud avatar Dec 16 '19 18:12 vladsud

I'm also seeing: TypeError: Cannot read property 'submitted' of undefined at Ge.summarize (https://officefluidprodversionedcdn.azureedge.net/3423966/container/officeContainer.js:249:5128)

in these sessions. I think we are missing a check on summaryData at the end of the summarizer:

        if (summaryData.submitted) {
            summarizingEvent.end(telemetryProps);
        } else {
            summarizingEvent.cancel({ ...telemetryProps, category: "error" });
        }

this could be why we are missing the error too.

anthony-murphy avatar Dec 16 '19 18:12 anthony-murphy

in merge-tree\client.ts we update the reference and min sequence number off the delta manger when the merge-tree is being snapshotted. If this is somehow ahead of ops that the merge tree hasn't processed yet i would expect to see the the error Vlad calls out when one of those older ops in processed. @arinwt could you investigate?

anthony-murphy avatar Dec 16 '19 19:12 anthony-murphy

The "Cannot read property 'submitted' of undefined" should already be resolved in 0.11 via PR #730, and also the event category was changed to error in this case in that PR as well - if there is an error object.

I can take a look, but we do await a call to pause() before summarizing, so I would think all ops would be propagated, and we await realize() and loadChannel() which should make sure all pending ops are processed.

arinwt avatar Dec 16 '19 19:12 arinwt

I just pushed PR #730 into Bohemia - it should reach production today at 3pm I think (if everything goes smooth). That said, there is Issue #791 that suggest the problem is not sequence specific and likely there is some bug in summarization flow. If we can't figure it out, can we add any telemetry that might give more hits on where to dig?

vladsud avatar Dec 17 '19 20:12 vladsud

I think I found the root cause in summary flow; I will put in a 0.11 PR as soon as I finish and test the change.

arinwt avatar Dec 18 '19 01:12 arinwt