[ 
https://issues.apache.org/jira/browse/ARIES-1719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15986862#comment-15986862
 ] 

Grzegorz Grzybek edited comment on ARIES-1719 at 4/27/17 3:57 PM:
------------------------------------------------------------------

OK, here's my solution.
I did {{config:propset --pid org.apache.aries.transaction 
aries.transaction.howl.logFileDir '${karaf.data}/txlog7'}} and have 
this in log:
{noformat}
2017-04-27 17:18:27,599 | INFO  | {fileinstall-/data/karaf/etc} [?] (?:?) | \
  Updating configuration from org.apache.aries.transaction.cfg
2017-04-27 17:18:27,656 | INFO  | {CM Configuration Updater (Update: 
pid=org.apache.aries.transaction)} 
[org.apache.aries.transaction.internal.Activator] (Activator.java:178) | \
  Copying transaction log from /data/karaf/data/txlog6 to 
/data/karaf/data/txlog7
2017-04-27 17:18:27,661 | INFO  | {CM Configuration Updater (Update: 
pid=org.apache.aries.transaction)} 
[org.apache.aries.transaction.internal.Activator] (Activator.java:203) | \
  Copying active transaction with XID 
[Xid:globalId=ffffffd93fffffffe8ffffffae5b10047544d4944000000000000000000000000000000000000000000000000000,length=64,branchId=0000000000000000000000000000000000000000000000000000000000000000,length=64]
2017-04-27 17:18:27,693 | INFO  | {CM Configuration Updater (Update: 
pid=org.apache.aries.transaction)} 
[org.apache.aries.transaction.internal.Activator] (Activator.java:206) | \
  Migration of active transactions finished
{noformat}

Of course I have to deal with {{stop}}→{{config:propset}}→{{start}}, because 
when aries.transaction.manager bundle is stopped it can't migrate the tx log...

I have to implement migration even if aries.transaction.manager starts for the 
first time with new configuration and old howl logs... I have to detect 
previous configuration...


was (Author: gzres):
OK, here's my solution.
I did {{config:propset --pid org.apache.aries.transaction 
aries.transaction.howl.logFileDir '${karaf.data}/txlog7'}} and have 
this in log:
{noformat}
2017-04-27 17:18:27,599 | INFO  | {fileinstall-/data/karaf/etc} [?] (?:?) | \
  Updating configuration from org.apache.aries.transaction.cfg
2017-04-27 17:18:27,656 | INFO  | {CM Configuration Updater (Update: 
pid=org.apache.aries.transaction)} 
[org.apache.aries.transaction.internal.Activator] (Activator.java:178) | \
  Copying transaction log from /data/karaf/data/txlog6 to /data/karaf/txlog7
2017-04-27 17:18:27,661 | INFO  | {CM Configuration Updater (Update: 
pid=org.apache.aries.transaction)} 
[org.apache.aries.transaction.internal.Activator] (Activator.java:203) | \
  Copying active transaction with XID 
[Xid:globalId=ffffffd93fffffffe8ffffffae5b10047544d4944000000000000000000000000000000000000000000000000000,length=64,branchId=0000000000000000000000000000000000000000000000000000000000000000,length=64]
2017-04-27 17:18:27,693 | INFO  | {CM Configuration Updater (Update: 
pid=org.apache.aries.transaction)} 
[org.apache.aries.transaction.internal.Activator] (Activator.java:206) | \
  Migration of active transactions finished
{noformat}

Of course I have to deal with {{stop}}→{{config:propset}}→{{start}}, because 
when aries.transaction.manager bundle is stopped it can't migrate the tx log...

I have to implement migration even if aries.transaction.manager starts for the 
first time with new configuration and old howl logs... I have to detect 
previous configuration...

> HOWLLog can't be restarted with different configuration
> -------------------------------------------------------
>
>                 Key: ARIES-1719
>                 URL: https://issues.apache.org/jira/browse/ARIES-1719
>             Project: Aries
>          Issue Type: Bug
>          Components: Transaction
>    Affects Versions: transaction-manager-1.3.2
>            Reporter: Grzegorz Grzybek
>            Assignee: Grzegorz Grzybek
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to