[jboss-jira] [JBoss JIRA] (WFLY-8335) User should be informed when switching between JDBC and journal store in transactions subsystem
Claudio Miranda (JIRA)
issues at jboss.org
Mon May 8 14:32:00 EDT 2017
[ https://issues.jboss.org/browse/WFLY-8335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403133#comment-13403133 ]
Claudio Miranda commented on WFLY-8335:
---------------------------------------
Hi Romain, I think there are some problems with the current implementation
1) the r-r-d doesn't set the alternatives correctly, the alternative of "use-jdbc-store" should contains "use-journal-store" and vice-versa.
{code}
"use-jdbc-store" => {
"type" => BOOLEAN,
"description" => "Use the jdbc store for writing transaction logs. Set to true to enable and to false to use the default log store type. The default log store is normally one file file per transaction log. It's alternative to journal based store.",
"expressions-allowed" => false,
"required" => false,
"nillable" => true,
"default" => false,
"alternatives" => ["use-hornetq-store"],
"requires" => ["jdbc-store-datasource"],
"access-type" => "read-write",
"storage" => "configuration",
"restart-required" => "jvm"
},
"use-journal-store" => {
"type" => BOOLEAN,
"description" => "Use the journal store for writing transaction logs. Set to true to enable and to false to use the default log store type. The default log store creates normally one file system file per transaction log. The journal one consists from one file for all the transactions. It's alternative to jdbc based store.",
"expressions-allowed" => false,
"required" => false,
"nillable" => true,
"default" => false,
"alternatives" => ["use-hornetq-store"],
"access-type" => "read-write",
"storage" => "configuration",
"restart-required" => "jvm"
}
{code}
2) when writing both "use-journal-store" and "use-jdbc-store" to true, the operation doesn't fail, it just sets the first one to true and the other to false. But it must fails.
{code}
batch
[domain at localhost:9990 / #] /profile=default/subsystem=transactions:write-attribute(name=use-journal-store,value=true)
[domain at localhost:9990 / #] /profile=default/subsystem=transactions:write-attribute(name=use-jdbc-store,value=true)
[domain at localhost:9990 / #] run-batch
The batch executed successfully
{code}
> User should be informed when switching between JDBC and journal store in transactions subsystem
> -----------------------------------------------------------------------------------------------
>
> Key: WFLY-8335
> URL: https://issues.jboss.org/browse/WFLY-8335
> Project: WildFly
> Issue Type: Enhancement
> Components: Transactions
> Affects Versions: 10.1.0.Final
> Reporter: Romain Pelisse
> Assignee: Romain Pelisse
> Priority: Minor
> Fix For: 11.0.0.Beta1
>
> Original Estimate: 2 days
> Remaining Estimate: 2 days
>
> Precondition: 'Use journal store' or 'Use JDBC store' was previously set to true.
> When enabling other type of store, user is not informed about the fact, that only one of those can be set and the previously enabled store is disabled and the new store is enabled without notification. User should be definitely informed about this.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list