Bug 1010961 - :reload operation does not activate hornetq object store to be used
Summary: :reload operation does not activate hornetq object store to be used
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Transaction Manager
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: tom.jenkinson
QA Contact: Ondrej Chaloupka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-23 11:55 UTC by Ondrej Chaloupka
Modified: 2017-10-10 00:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-25 06:12:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ondrej Chaloupka 2013-09-23 11:55:49 UTC
I found out that reload operation on AS server does not activate hornetq object store to be used.
When I set in cli:
/subsystem=transactions:write-attribute(name=use-hornetq-store, value=true)

the XML config file contains correct element. The reload is required. But when I run reload the standard file system object store is still in usage.

There is no message like:
TRACE [com.arjuna.ats.arjuna] (MSC service thread 1-8) HornetqObjectStore.start()

I need to reboot server to get the hornetq store in action.

Comment 1 Ondrej Chaloupka 2013-09-23 12:00:31 UTC
Checked for EAP 6.2.0.ER1.

To reproduce use settings of the logging like:
<logger category="com.arjuna.ats">
    <level name="TRACE"/>
</logger>
<logger category="org.hornetq.journal">
    <level name="TRACE"/>
</logger>

And run $JBOSS_HOME/bin/jboss-cli.sh.

You can compare the logs with case when you set tag
<use-hornetq-store/>
under transactions subsystem by hand in XML.

Comment 2 tom.jenkinson 2013-09-24 15:13:23 UTC
I am not sure what to expect here. I do:

./bin/standalone.sh&
./bin/jboss-cli.sh --connect
/subsystem=transactions:write-attribute(name=use-hornetq-store, value=true)
:shutdown
exit
./bin/standalone.sh

git diff standalone/configuration/standalone.xml
Shows some formatting issues and
+            <use-hornetq-store/>

Is this not what we expect?

Comment 3 Ondrej Chaloupka 2013-09-24 15:18:11 UTC
Hi Tom,

my problem is that when it seems that HornetQ is not started after reload. When I do reboot (stop jboss and start again) then the HornetQ object store is used.

But when I start jboss with standard file system store, set it as attribute and run reload then the standard file system object store is used and it's not switched to the hornetq object store after the restart.

This could be observed when you run some app and check the data directory or when you check the log with trace level. When hornetq is used then after start/reload you should see message HornetqObjectStore.start() somewhere in the log.

Ondra

Comment 4 tom.jenkinson 2013-09-24 15:33:13 UTC
Ah, are you expecting to not need to reboot the server after changing the object store in use? This is not how Narayana works, the object store is set when the transaction manager launches and can't be altered without a restart of the transaction manager.

Comment 5 Ondrej Chaloupka 2013-09-25 06:12:06 UTC
Ah, ok, then... I didn't realize that before. Sorry for creating this bug.

Summary: This is not a bug this is expected behavior. Narayana needs to be restarted to start to use new object store.


Note You need to log in before you can comment on or make changes to this bug.