[Neo Plugin New feature] UnhandledExceptionPolicy on Plugin Unhandled Exception#3311
Conversation
…st data pollution.
Co-authored-by: Shargon <shargon@gmail.com>
Co-authored-by: Christopher Schuchardt <cschuchardt88@gmail.com>
Co-authored-by: Christopher Schuchardt <cschuchardt88@gmail.com>
|
Maybe TokenTracker should be the same default settings as Applicationlogs, they're working in similar behaviours. |
will update. |
|
Following the call of the TC, this pr will be halted for 3-6 months. Thus please don't merge this pr. |
This is required if we merged the previous related one. I Didn't read it nothing related against this pr |
sure. since coredev meeting is scheduled next week, i think it should still be fine to merge this one. |
|
@shargon can you please merge this branch to master? |
* [Neo Core] Part 1. Isolate Plugins Exceptions from the Node. (#3309) * catch plugin exceptions. * add UT test * udpate format * make the test more complete * complete the ut test * format * complete UT tests with NonPlugin case * async invoke * Update src/Neo/Ledger/Blockchain.cs Co-authored-by: Christopher Schuchardt <cschuchardt88@gmail.com> --------- Co-authored-by: Christopher Schuchardt <cschuchardt88@gmail.com> * [Neo Plugin New feature] UnhandledExceptionPolicy on Plugin Unhandled Exception (#3311) * catch plugin exceptions. * add UT test * udpate format * make the test more complete * complete the ut test * format * complete UT tests with NonPlugin case * async invoke * stop plugin on exception * remove watcher from blockchain if uint test is done to avoid cross test data pollution. * add missing file * 3 different policy on handling plugin exception * add missing file * fix null warning * format * Apply suggestions from code review Clean * Update src/Neo/Plugins/PluginSettings.cs Co-authored-by: Shargon <shargon@gmail.com> * Update src/Neo/Plugins/PluginSettings.cs Co-authored-by: Christopher Schuchardt <cschuchardt88@gmail.com> * Update src/Plugins/TokensTracker/TokensTracker.cs Co-authored-by: Christopher Schuchardt <cschuchardt88@gmail.com> * Update src/Plugins/TokensTracker/TokensTracker.json --------- Co-authored-by: Shargon <shargon@gmail.com> Co-authored-by: Christopher Schuchardt <cschuchardt88@gmail.com> * make the exception message clear --------- Co-authored-by: Christopher Schuchardt <cschuchardt88@gmail.com> Co-authored-by: Shargon <shargon@gmail.com> Co-authored-by: NGD Admin <154295625+NGDAdmin@users.noreply.github.com>
Description
This is a follow up work after #3309. This pr will stop a plugin if a plugin throws an unhandled exception, but we also allow user to specify plugins not to stop on exception (except store plugins.).
Every single plugin can specifiy their own policy when unhandled exception is throw out of the plugin:
Fixes # follow #3309
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: