Modify uncaught exception handler to call System.exit(1). 10/4110/4
authorTomas Olvecky <tolvecky@cisco.com>
Thu, 9 Jan 2014 12:29:49 +0000 (13:29 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 13 Jan 2014 11:48:29 +0000 (11:48 +0000)
This introduces the ability to specify how uncaught exceptions are
handled via setting controller.uncaughtExceptionPolicy property.

There are two policies: IGNORE and ABORT. The former logs which thread
has died and does nothing else. The latter forces a virtual machine
shutdown when a thread dies.

The default policy is IGNORE, as that has been the historic setting. For
Helium release, this should probably get discussed, as uncontrolled
thread death may leave the controller in an inconsistent/invalid state.

Change-Id: Ib7c64b23e1cd3c7c45cfa31401410bba22acd431
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>

No differences found