Yes, to avoid starting with the bad setting, you can actually start the server in admin
only mode, then execute that change
./bin/standalone.sh -—admin-only &
./bin/jboss-cli.sh --connect
--commands='/subsystem=messaging/hornetq-server=default:write-attribute(name=journal-type,value=NIO),:shutdown’
BTW I think the aio handling could be more robust. It would be nice if it attempted AIO,
determined that the FS didn’t support direct access, and then switched to NIO.
On Nov 22, 2013, at 1:01 PM, Arun Gupta <arun.gupta(a)gmail.com> wrote:
Can I make this changes using CLI ?
The script on CI server checks out the workspace, builds it and then
start it. I'll have to do ugly file patching if there is no convenient
way.
On Fri, Nov 22, 2013 at 10:49 AM, Brian Stansberry
<brian.stansberry(a)redhat.com> wrote:
> [standalone@localhost:9990 /]
>
/subsystem=messaging/hornetq-server=default:write-attribute(name=journal-type,value=NIO)
> {
> "outcome" => "success",
> "response-headers" => {
> "operation-requires-reload" => true,
> "process-state" => "reload-required"
> }
> }
> [standalone@localhost:9990 /] reload
>
> However, since you need to reload the server anyway to get the change to
> take effect, it might make more sense to just edit the config file in
> the first place.
>
> On 11/22/13 7:45 AM, Arun Gupta wrote:
>> Opened
https://issues.jboss.org/browse/HORNETQ-1286
>>
>> Tests are running on a CI server and do not have the rights to install
>> any system level libraries.
>>
>> Is there a CLI option to force NIO ?
>>
>> Arun
>>
>>
>>
>> Arun
>>
>> On Fri, Nov 22, 2013 at 1:17 AM, Jeff Mesnil <jmesnil(a)redhat.com> wrote:
>>>
>>> On 22 Nov 2013, at 06:00, Arun Gupta <arun.gupta(a)gmail.com> wrote:
>>>
>>>> And how would I do that ? :-)
>>>
>>> in the XML configuration, you would add
>>>
>>> <journal-type>NIO</journal-type>
>>>
>>> to the messaging subsystem configuration.
>>>
>>>> On Thu, Nov 21, 2013 at 6:41 PM, Jason Greene <jgreene(a)redhat.com>
wrote:
>>>>> Sounds like the CI system doesn't have a file system that
supports direct access. Try setting the journal type to NIO.
>>>
>>> There is something else going on here. If HornetQ is running on a system
without AIO, it’d log a warning and revert to NIO:
>>>
>>> 10:11:28,080 WARN [org.jboss.as.messaging] (MSC service thread 1-15)
JBAS011600: AIO wasn't located on this platform, it will fall back to using pure Java
NIO.
>>> If your platform is Linux, install LibAIO to enable the AIO journal
>>>
>>> Either the detection of AIO is buggy or there is a real problem with the
file.
>>>
>>> Arun, could you open a bug on HornetQ issue tracker with a copy of your
journal file?
>>>
>>> jeff
>>>
>>>>>
>>>>> Sent from my iPhone
>>>>>
>>>>>> On Nov 21, 2013, at 4:20 PM, Arun Gupta
<arun.gupta(a)gmail.com> wrote:
>>>>>>
>>>>>> Trying to run Java EE 7 unit tests and the complete log is at:
>>>>>>
>>>>>>
https://arungupta.ci.cloudbees.com/job/Java%20EE%207%20Samples%20on%20Wil...
>>>>>>
>>>>>> HornetQ throws the following error:
>>>>>>
>>>>>> [0m [0m10:51:36,892 INFO [org.jboss.ws.common.management] (MSC
>>>>>> service thread 1-2) JBWS022052: Starting JBoss Web Services -
Stack
>>>>>> CXF Server 4.2.3.Final
>>>>>> [0m [33m10:51:37,031 WARN [org.hornetq.core.server]
(ServerService
>>>>>> Thread Pool -- 58) HQ222010: Critical IO Error, shutting down
the
>>>>>> server. file=AIOSequentialFile:/scratch/jenkins/workspace/Java EE
7
>>>>>> Samples on
WildFly-cb/wildfly-8.0.0.Beta2-SNAPSHOT/standalone/data/messagingjournal/hornetq-data-1.hq.tmp,
>>>>>> message=Can't open file:
>>>>>> HornetQException[errorType=NATIVE_ERROR_CANT_OPEN_CLOSE_FILE
>>>>>> message=Can't open file]
>>>>>> at
org.hornetq.core.asyncio.impl.AsynchronousFileImpl.init(Native
>>>>>> Method) [hornetq-journal-2.4.0.Beta2.jar:]
>>>>>> at
org.hornetq.core.asyncio.impl.AsynchronousFileImpl.open(AsynchronousFileImpl.java:220)
>>>>>> [hornetq-journal-2.4.0.Beta2.jar:]
>>>>>> at
org.hornetq.core.journal.impl.AIOSequentialFile.open(AIOSequentialFile.java:190)
>>>>>> [hornetq-journal-2.4.0.Beta2.jar:]
>>>>>>
>>>>>> Several test deployments are failing with the following reason:
>>>>>>
>>>>>> Caused by: java.lang.Exception: {"JBAS014771: Services with
>>>>>> missing/unavailable dependencies" =>
>>>>>>
["jboss.naming.context.java.module.test.test.DefaultJMSConnectionFactory
>>>>>> is missing
[jboss.naming.context.java.jboss.DefaultJMSConnectionFactory]"]}
>>>>>> at
org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getActionResult(ServerDeploymentPlanResultFuture.java:134)
>>>>>> at
org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getResultFromNode(ServerDeploymentPlanResultFuture.java:123)
>>>>>>
>>>>>> If I run in the default Web profile then this error does not
occur as shown at:
>>>>>>
>>>>>>
https://arungupta.ci.cloudbees.com/job/Java%20EE%207%20Samples%20on%20Wil...
>>>>>>
>>>>>> But JMS tests fail.
>>>>>>
>>>>>> I can't reproduce this issue with the latest workspace on my
machine.
>>>>>>
>>>>>> Any suggestions ?
>>>>>>
>>>>>> Arun
>>>>>>
>>>>>> --
>>>>>>
http://blog.arungupta.me
>>>>>>
http://twitter.com/arungupta
>>>>>>
>>>>>> _______________________________________________
>>>>>> wildfly-dev mailing list
>>>>>> wildfly-dev(a)lists.jboss.org
>>>>>>
https://lists.jboss.org/mailman/listinfo/wildfly-dev
>>>>
>>>>
>>>>
>>>> --
>>>>
http://blog.arungupta.me
>>>>
http://twitter.com/arungupta
>>>> _______________________________________________
>>>> wildfly-dev mailing list
>>>> wildfly-dev(a)lists.jboss.org
>>>>
https://lists.jboss.org/mailman/listinfo/wildfly-dev
>>>
>>> --
>>> Jeff Mesnil
>>> JBoss, a division of Red Hat
>>>
http://jmesnil.net/
>>>
>>
>>
>>
>
>
> --
> Brian Stansberry
> Principal Software Engineer
> JBoss by Red Hat
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/wildfly-dev
--
http://blog.arungupta.me
http://twitter.com/arungupta
_______________________________________________
wildfly-dev mailing list
wildfly-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/wildfly-dev
--
Jason T. Greene
WildFly Lead / JBoss EAP Platform Architect
JBoss, a division of Red Hat