[
https://issues.jboss.org/browse/WFCORE-3734?page=com.atlassian.jira.plugi...
]
Martin Choma updated WFCORE-3734:
---------------------------------
Description:
Closeable Operation is not closed in:
* {code:java|title=ModelControllerClientFactoryImpl.java}
private OperationResponse runOperation(final ModelNode operation, final
OperationMessageHandler messageHandler,
final OperationAttachments attachments,
boolean inVmCall) {
Operation op = attachments == null ? Operation.Factory.create(operation) :
Operation.Factory.create(operation, attachments.getInputStreams(),
attachments.isAutoCloseStreams());
if (inVmCall) {
return SecurityActions.runInVm(() -> modelController.execute(op,
messageHandler, ModelController.OperationTransactionControl.COMMIT));
} else {
return modelController.execute(op, messageHandler,
ModelController.OperationTransactionControl.COMMIT);
}
}
{code}
http://station5.brq.redhat.com:8080/reports.htm#v10078/p10031/fileInstanc...
* {code:java|title=AffectedDeploymentOverlay.java}
final ModelNode slave = opBuilder.build().getOperation();
{code}
http://station5.brq.redhat.com:8080/reports.htm#v10078/p10031/fileInstanc...
was:
Closeable Operation is not closed in:
* [1]
{code:java|title=ModelControllerClientFactoryImpl.java}
private OperationResponse runOperation(final ModelNode operation, final
OperationMessageHandler messageHandler,
final OperationAttachments attachments,
boolean inVmCall) {
Operation op = attachments == null ? Operation.Factory.create(operation) :
Operation.Factory.create(operation, attachments.getInputStreams(),
attachments.isAutoCloseStreams());
if (inVmCall) {
return SecurityActions.runInVm(() -> modelController.execute(op,
messageHandler, ModelController.OperationTransactionControl.COMMIT));
} else {
return modelController.execute(op, messageHandler,
ModelController.OperationTransactionControl.COMMIT);
}
}
{code}
* [2]
{code:java|title=AffectedDeploymentOverlay.java}
final ModelNode slave = opBuilder.build().getOperation();
{code}
[1]
http://station5.brq.redhat.com:8080/reports.htm#v10078/p10031/fileInstanc...
[2]
http://station5.brq.redhat.com:8080/reports.htm#v10078/p10031/fileInstanc...
[Coverity] Potential Resource Leak
-----------------------------------
Key: WFCORE-3734
URL:
https://issues.jboss.org/browse/WFCORE-3734
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Reporter: Martin Choma
Assignee: Brian Stansberry
Priority: Critical
Closeable Operation is not closed in:
* {code:java|title=ModelControllerClientFactoryImpl.java}
private OperationResponse runOperation(final ModelNode operation, final
OperationMessageHandler messageHandler,
final OperationAttachments attachments,
boolean inVmCall) {
Operation op = attachments == null ? Operation.Factory.create(operation) :
Operation.Factory.create(operation, attachments.getInputStreams(),
attachments.isAutoCloseStreams());
if (inVmCall) {
return SecurityActions.runInVm(() -> modelController.execute(op,
messageHandler, ModelController.OperationTransactionControl.COMMIT));
} else {
return modelController.execute(op, messageHandler,
ModelController.OperationTransactionControl.COMMIT);
}
}
{code}
http://station5.brq.redhat.com:8080/reports.htm#v10078/p10031/fileInstanc...
* {code:java|title=AffectedDeploymentOverlay.java}
final ModelNode slave = opBuilder.build().getOperation();
{code}
http://station5.brq.redhat.com:8080/reports.htm#v10078/p10031/fileInstanc...
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)