[jboss-jira] [JBoss JIRA] (WFLY-5393) Using deprecated attribute use-hornetq-store in CLI does not have any effect being set
Amos Feng (JIRA)
issues at jboss.org
Thu Nov 5 10:28:00 EST 2015
[ https://issues.jboss.org/browse/WFLY-5393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126030#comment-13126030 ]
Amos Feng commented on WFLY-5393:
---------------------------------
[~ochaloup], there is a failure in testsuite/integration/manualmode/src/test/java/org/jboss/as/test/manualmode/transaction/ObjectStoreTypeTestCase.java
{code}
@Test
public void testHornetQObjectStore() throws IOException, MgmtOperationException {
try {
String objectStoreType = readObjectStoreType();
assertEquals("default", objectStoreType);
cli.sendLine("/subsystem=transactions:write-attribute(name=use-hornetq-store, value=true)");
final CLIOpResult ret = cli.readAllAsOpResult();
assertEquals("restart-required", (String) ((Map) ret.getFromResponse(RESPONSE_HEADERS)).get(PROCESS_STATE));
cli.sendLine("reload");
objectStoreType = readObjectStoreType();
assertEquals("default", objectStoreType); // use-hornetq-store was deprecated, should have no effect
} finally {
setDefaultObjectStore();
}
}
{code}
It looks like we need to change the last assertEquals as you want to have the use-hornetq-store have the same effect of use-journal-sore even if it was deprecated.
> Using deprecated attribute use-hornetq-store in CLI does not have any effect being set
> --------------------------------------------------------------------------------------
>
> Key: WFLY-5393
> URL: https://issues.jboss.org/browse/WFLY-5393
> Project: WildFly
> Issue Type: Bug
> Components: Transactions
> Affects Versions: 10.0.0.CR1
> Reporter: Ondřej Chaloupka
> Assignee: Amos Feng
> Fix For: 10.0.0.Final
>
>
> Attribute {{use-hornetq-store}} was deprecated for EAP7 and {{use-journal-store}} should be used instead. But even the attribute is deprecated it still should provide its old functionality.
> I think that using {{use-hornetq-store}} would have the same effect as when {{use-journal-store}} is used.
> I would think that when one of the attribute is set then the other one should present the same settings.
> {code}
> /subsystem=transactions:read-attribute(name=use-hornetq-store)
> {
> "outcome" => "success",
> "result" => false
> }
> /subsystem=transactions:read-attribute(name=use-journal-store)
> {
> "outcome" => "success",
> "result" => false
> }
> /subsystem=transactions:write-attribute(name=use-journal-store, value=true)
> {
> "outcome" => "success",
> "response-headers" => {
> "operation-requires-restart" => true,
> "process-state" => "restart-required"
> }
> }
> :shutdown(restart=true)
> {"outcome" => "success"}
> /subsystem=transactions:read-attribute(name=use-journal-store)
> {
> "outcome" => "success",
> "result" => true
> }
> /subsystem=transactions:read-attribute(name=use-hornetq-store)
> {
> "outcome" => "success",
> "result" => false
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list