Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 913117

Summary: HornetQ native library(AIO) are loaded by default - for transaction manager using hornetq object store
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Ondrej Chaloupka <ochaloup>
Component: Transaction ManagerAssignee: Ivo Studensky <istudens>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: cdewolf, istudens, myarboro, pslavice
Target Milestone: ER2   
Target Release: EAP 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-15 16:15:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ondrej Chaloupka 2013-02-20 12:24:27 UTC
It seems that in case that of using hornetq for implementation of object store (configuration of transaction subsystem via <use-hornetq-store/> tag) the native library (AIO) is used automatically without necessity of user confirmation.

For EAP 6.0.1 was decided that native library can't be used without explicit customer configuration request. Please check discussion on bug #900591.
The NIO should be used until customer defined otherwise.

The configuration option is missing in TM and after the adding it the EAP configuration should reflect fact that the default behaviour should be NIO.

Comment 1 Ondrej Chaloupka 2013-02-20 14:03:48 UTC
The messaging subsystem defines element journal-type that defines the type of library which will be used. Possible values are ASYNCIO and NIO.

<subsystem xmlns="urn:jboss:domain:messaging:1.2">
  <hornetq-server>
    <journal-type>ASYNCIO</journal-type>
    ...

For transaction subystem would be probably necessary to enhance schema. The transactions use element use-hornetq-store where would be fine to have possibility to define (as subelement or parameter) the type of libraries that will be used.

Comment 2 tom.jenkinson 2013-03-06 08:01:10 UTC
Jira here: https://issues.jboss.org/browse/JBTM-1480

Comment 3 JBoss JIRA Server 2013-03-21 11:27:31 UTC
Ivo Studensky <istudens> made a comment on jira JBTM-1480

New configuration attribute 'boolean asyncIO' has been added to the HornetqJournalEnvironmentBean. The default value is true to keep the origin behavior.

Comment 4 JBoss JIRA Server 2013-03-21 14:26:44 UTC
Ivo Studensky <istudens> made a comment on jira AS7-6768

The fix is available at 

https://github.com/istudens/jboss-as/tree/AS7-6768

Comment 5 JBoss JIRA Server 2013-03-22 15:09:20 UTC
Ivo Studensky <istudens> made a comment on jira JBTM-1480

Adding two another PRs for a small fix in the docs.

Comment 6 JBoss JIRA Server 2013-04-02 14:38:30 UTC
Ivo Studensky <istudens> made a comment on jira JBTM-1480

PRs have been merged.

Comment 7 JBoss JIRA Server 2013-05-30 13:24:14 UTC
Paul Robinson <paul.robinson> updated the status of jira JBTM-1480 to Closed

Comment 8 Ivo Studensky 2013-06-28 12:26:19 UTC
Moving this BZ to 6.2.0 as it changes the default behaviour of the server and introduces a new version of the schema of transaction subsystem. Because of these reasons it does not seem to belong to 6.1.1 release.

Comment 10 Ondrej Chaloupka 2013-09-23 11:45:32 UTC
Verified for EAP 6.2.0.ER2