FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

Close container on critical errors

Open arinwt opened this issue 7 years ago • 2 comments

Currently, we rely on app to close container when critical error is raised on main container (though, if error is coming from DeltaManager, we close it ourselves as well). When error is hit on summarizing container, there is nobody to close it, so I think we should fix it and restart summarizer.

arinwt avatar Nov 27 '19 20:11 arinwt

For agent/summarizer client containers, it feels like there are 3 main options:

  • same level: Always close container on critical errors.
  • propagate up: Analogous to main container, when a spawned container encounters a critical error it is the responsibility of the main container which created it to listen to the error event and close it if needed. Right now Loader.request does not provide a reference to the created container, so it cannot listen to the error event.
  • propagate down: The code running in the spawned container should be able to listen to the container error event and close itself. The container error event would need to be propagated to the runtime so the (for example) summarizer code can call close.

arinwt avatar Nov 27 '19 20:11 arinwt

Closing in favor of #1603

arinwt avatar May 08 '20 22:05 arinwt