Skip to content

Conversation

@sharwell
Copy link
Contributor

@sharwell sharwell commented Dec 6, 2019

Exceptions in the handler of FileSystemWatcher events will terminate the process. This pull request updates the event handler to use a try/catch block that logs the error instead of crashing the process.

This fixes one known cause of test process failures.

@sharwell sharwell requested a review from a team as a code owner December 6, 2019 22:49
Copy link
Member

@codemzs codemzs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link
Contributor

@frank-dong-ms-zz frank-dong-ms-zz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@codecov
Copy link

codecov bot commented Dec 7, 2019

Codecov Report

Merging #4535 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4535      +/-   ##
==========================================
- Coverage    75.1%    75.1%   -0.01%     
==========================================
  Files         908      908              
  Lines      160260   160260              
  Branches    17259    17259              
==========================================
- Hits       120369   120361       -8     
- Misses      35070    35083      +13     
+ Partials     4821     4816       -5
Flag Coverage Δ
#Debug 75.1% <ø> (-0.01%) ⬇️
#production 70.5% <ø> (-0.01%) ⬇️
#test 90.26% <ø> (ø) ⬆️
Impacted Files Coverage Δ
src/Microsoft.ML.AutoML/Sweepers/ISweeper.cs 59.49% <0%> (-7.6%) ⬇️
src/Microsoft.ML.AutoML/Sweepers/Parameters.cs 77.96% <0%> (-5.09%) ⬇️
...ML.Transforms/Text/StopWordsRemovingTransformer.cs 86.1% <0%> (-0.16%) ⬇️
src/Microsoft.ML.Transforms/Text/LdaTransform.cs 84.44% <0%> (-0.16%) ⬇️
...soft.ML.Data/DataLoadSave/Text/TextLoaderCursor.cs 85.31% <0%> (+0.2%) ⬆️
src/Microsoft.ML.Maml/MAML.cs 26.21% <0%> (+1.45%) ⬆️
...c/Microsoft.ML.FastTree/Utils/ThreadTaskManager.cs 100% <0%> (+20.51%) ⬆️

public static readonly EventId FileReloadBegin = new EventId(100, "FileReloadBegin");
public static readonly EventId FileReloadEnd = new EventId(101, "FileReloadEnd");
public static readonly EventId FileReload = new EventId(102, "FileReload");
public static readonly EventId FileReloadError = new EventId(103, nameof(FileReloadError));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 I wanted to make this have the same order as UriModelLoader, but I was not sure if these event IDs need to be stable over time. Since I wasn't sure, I opted for keeping the current IDs unchanged and just added the new one.

@sharwell sharwell merged commit b78dad5 into dotnet:master Dec 8, 2019
@sharwell sharwell deleted the handle-exceptions branch December 8, 2019 01:52
@ghost ghost locked as resolved and limited conversation to collaborators Mar 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants