Skip to content

Improvements to NFW reporting#41477

Merged
tmat merged 5 commits intodotnet:masterfrom
tmat:NFW
Mar 2, 2020
Merged

Improvements to NFW reporting#41477
tmat merged 5 commits intodotnet:masterfrom
tmat:NFW

Conversation

@tmat
Copy link
Member

@tmat tmat commented Feb 7, 2020

A few improvements in unexpected exception reporting.

  1. Unify reporting between ServiceHub and DevEnv processes.
  2. Use FatalError.Report* methods for all sites that report fatal or non-fatal Watson. FatalError.Report* ensures that NFW is reported only once for the given exception even if the exception is passed to FatalError.Report multiple times (as it may propagate on the stack).
  3. Attach ServiceHub logs to all NFW reports (regardless of whether they come from DevEnv or ServiceHub process)
  4. Load content of log files in memory so that it is captured directly in the .dmp file and easier to retrieve.
  5. Add overloads of FatalError.Report*UnlessCancelled* that take cancellation token and check if it matches the one in the CancellationException. These are intended to replace the ones without the token at all call sites in future.

@tmat tmat changed the title Improvenemnts to NFW reporting Improvements to NFW reporting Feb 7, 2020
@sharwell
Copy link
Contributor

sharwell commented Feb 7, 2020

and check if it matches the one in the CancellationException

I am not aware of a situation where this is correct. It's fine to check that the token is cancelled, but it is not safe to assume the cancellation token is the same one that will appear in the exception. This would disallow things like linked cancellation tokens.

@tmat
Copy link
Member Author

tmat commented Feb 20, 2020

@sharwell I have changed the condition for now. We can follow up with a stronger one later.

@sharwell
Copy link
Contributor

sharwell commented Feb 20, 2020

@tmat Thanks! The UI won't let me dismiss the review while it's still in draft.

@tmat tmat marked this pull request as ready for review February 20, 2020 16:32
@tmat tmat requested review from a team as code owners February 20, 2020 16:32
@tmat tmat requested a review from a team February 20, 2020 16:32
@tmat tmat merged commit 64260f1 into dotnet:master Mar 2, 2020
@tmat tmat deleted the NFW branch March 2, 2020 22:10
@jinujoseph jinujoseph added this to the 16.6.P2 milestone Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants