ParentIsNotSummarizer should not be an error
Going through errors, I believe this one should not be an error, but a regular telemetry event: fluid:telemetry:Summarizer:ParentIsNotSummarizer
I'd like to keep this one as an error, because it is indicative of something else going wrong. I started looking at the document with this issue in telemetry and found that something interesting must have happened.
- The main client spawned a summarizer client and it created a summary, everything was fine.
- Then the main client disconnected because of "Loading chunk 2 failed", which caused the summarizer to close as well.
- Then the main client code decided to restart the summarizer client, which then realized it wasn't supposed to be the summarizer (because the main client is disconnected still), and raised the ParentIsNotSummarizer error. This repeats many more times.
I think the root issue here is that for some reason the main client kept thinking it should still summarize. After reviewing the code, I think this is possible if something goes wrong during the disconnect event propagation, because informing the SummaryManager is the last step in the propagation.
Closing this issue since the related issue is fixed and this is still an error case.