]
Brian Stansberry updated WFCORE-1220:
-------------------------------------
Fix Version/s: 3.0.0.Alpha4
(was: 3.0.0.Alpha3)
Try closing the channel if java.lang.Error prevents sending error
responses to the client
-----------------------------------------------------------------------------------------
Key: WFCORE-1220
URL:
https://issues.jboss.org/browse/WFCORE-1220
Project: WildFly Core
Issue Type: Sub-task
Components: Domain Management
Reporter: Brian Stansberry
Assignee: Brian Stansberry
Fix For: 3.0.0.Alpha4
Beyond the basic work on WFCORE-1134, look into further reaction when Errors occur and
the server or HC cannot even send an error response to the caller. If we get to this
point, the task has already failed to handle a problem and now we can't notify the
remote side either. Most likely this is an OOME situation, although any Error here means a
major issue.
Options:
1) Try and close the channel to disconnect this process from the remote end so it
doesn't disrupt the remote end. If this is an intra-HC or HC-server connection a
successful close will remove this process from normal domain control. If this is a server
the HC still has some control over the server via the ProcessController, e.g. to handle a
'kill' or 'destroy' management op. If this is a slave HC, the slave is
disconnected from the domain. Either a server or a slave HC may try to reconnect, although
it's likely better if that fails and the user just restarts the process.
If the remote side is an end user client (e.g. CLI) then a successful close will be
noticed by the client. The user can reconnect or take action to terminate this process.
2) Commit suicide via SystemExiter.exit. But I'm not certain complete termination of
the process is how we want to deal with problems with management requests. Probably some
sort of configurable policy would be better.