[jboss-jira] [JBoss JIRA] (WFCORE-2335) It is possible to set buffer pool buffers-per-slice attribute to negative value
Dmitrii Tikhomirov (JIRA)
issues at jboss.org
Mon Feb 27 08:48:00 EST 2017
Dmitrii Tikhomirov created WFCORE-2335:
------------------------------------------
Summary: It is possible to set buffer pool buffers-per-slice attribute to negative value
Key: WFCORE-2335
URL: https://issues.jboss.org/browse/WFCORE-2335
Project: WildFly Core
Issue Type: Bug
Components: IO
Reporter: Dmitrii Tikhomirov
Assignee: Dmitrii Tikhomirov
Currently, setting of negative value passes:
{code}
[standalone at localhost:9990 /] /subsystem=io/buffer-pool=foo:write-attribute(name=buffers-per-slice, value=-20
{
"outcome" => "success",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
}
}
{code}
although error in server log is thrown after reload, it contains only error message about 'bufferSize' when I was setting buffers-per-slice attribute:
{code}
2017-02-27 08:46:13,117 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "io"),
("buffer-pool" => "foo")
]) - failure description: {
"WFLYCTL0080: Failed services" => {"org.wildfly.io.buffer-pool.foo" => "org.jboss.msc.service.StartException in service org.wildfly.io.buffer-pool.foo: Failed to start service
Caused by: java.lang.IllegalArgumentException: XNIO000015: Parameter 'bufferSize' is out of range"},
"WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.io.buffer-pool.foo"]
}
{code}
There should be validation of this attribute.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list