Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-9139

It is possible to set buffer pool buffers-per-slice attribute to negative value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.DR13
    • 7.1.0.DR12
    • IO
    • None

    Description

      Currently, setting of negative value passes:

      [standalone@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"
          }
      }
      

      although error in server log is thrown after reload, it contains only error message about 'bufferSize' when I was setting buffers-per-slice attribute:

      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"]
      }
      

      There should be validation of this attribute.

      Attachments

        Issue Links

          Activity

            People

              dtikhomi@redhat.com Dmitrii Tikhomirov
              jkasik@redhat.com Jan Kašík
              Jan Kašík Jan Kašík
              Jan Kašík Jan Kašík
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: