[ https://issues.apache.org/jira/browse/ARTEMIS-4129?focusedWorklogId=839730&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-839730 ]
ASF GitHub Bot logged work on ARTEMIS-4129: ------------------------------------------- Author: ASF GitHub Bot Created on: 17/Jan/23 18:07 Start Date: 17/Jan/23 18:07 Worklog Time Spent: 10m Work Description: jbertram merged PR #4333: URL: https://github.com/apache/activemq-artemis/pull/4333 Issue Time Tracking ------------------- Worklog Id: (was: 839730) Time Spent: 20m (was: 10m) > When HA does not configure the oldreplica number of directories parameter > (max-saved-replicated-journals-size) for the master/primary, always the > default value of 2 > -------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: ARTEMIS-4129 > URL: https://issues.apache.org/jira/browse/ARTEMIS-4129 > Project: ActiveMQ Artemis > Issue Type: Bug > Components: Broker > Affects Versions: 2.27.1 > Reporter: Mikhail Lukyanov > Priority: Major > Attachments: image-2023-01-14-22-40-52-484.png > > Time Spent: 20m > Remaining Estimate: 0h > > The parameter *max-saved-replicated-journals-size* (number of oldreplica > directories) is configured only for the slave/backup, for the master/primary > I can not do this. Always creates 2 oldreplica directories in journal and in > paging dirs when restarting the broker. > !image-2023-01-14-22-40-52-484.png! > Master config > {quote} <connectors> > <connector name="local">tcp://192.168.58.6:61611</connector> > <connector name="toA2">tcp://192.168.58.6:61612</connector> > </connectors> > <acceptors> > <acceptor name="default-listener">tcp://0.0.0.0:61611</acceptor> > </acceptors> > <ha-policy> > <replication> > <master> > <group-name>A</group-name> > <cluster-name>cluster</cluster-name> > <check-for-live-server>true</check-for-live-server> > > <initial-replication-sync-timeout>30000</initial-replication-sync-timeout> > > <vote-on-replication-failure>false</vote-on-replication-failure> > <quorum-size>-1</quorum-size> > <vote-retries>12</vote-retries> > <vote-retry-wait>5000</vote-retry-wait> > <quorum-vote-wait>30</quorum-vote-wait> > <retry-replication-wait>2000</retry-replication-wait> > </master> > </replication> > </ha-policy> > <cluster-connections> > <cluster-connection name="cluster"> > <connector-ref>local</connector-ref> > <check-period>30000</check-period> > <connection-ttl>60000</connection-ttl> > <min-large-message-size>102400</min-large-message-size> > <call-timeout>30000</call-timeout> > <retry-interval>2000</retry-interval> > <retry-interval-multiplier>1.0</retry-interval-multiplier> > <max-retry-interval>2000</max-retry-interval> > <initial-connect-attempts>-1</initial-connect-attempts> > <reconnect-attempts>-1</reconnect-attempts> > <use-duplicate-detection>true</use-duplicate-detection> > <message-load-balancing>ON_DEMAND</message-load-balancing> > <max-hops>1</max-hops> > <confirmation-window-size>10485760</confirmation-window-size> > <producer-window-size>-1</producer-window-size> > <call-failover-timeout>-1</call-failover-timeout> > <notification-interval>1000</notification-interval> > <notification-attempts>2</notification-attempts> > <static-connectors> > <connector-ref>toA2</connector-ref> > </static-connectors> > </cluster-connection> > </cluster-connections> > {quote} > > Slave config > > {quote} <connectors> > <connector name="local">tcp://192.168.58.6:61612</connector> > <connector name="toA1">tcp://192.168.58.6:61611</connector> > </connectors> > <acceptors> > <acceptor name="default-listener">tcp://0.0.0.0:61612</acceptor> > </acceptors> > <ha-policy> > <replication> > <slave> > <group-name>A</group-name> > <cluster-name>cluster</cluster-name> > > <max-saved-replicated-journals-size>0</max-saved-replicated-journals-size> > <restart-backup>true</restart-backup> > <allow-failback>true</allow-failback> > > <initial-replication-sync-timeout>30000</initial-replication-sync-timeout> > > <vote-on-replication-failure>false</vote-on-replication-failure> > <quorum-size>-1</quorum-size> > <vote-retries>12</vote-retries> > <vote-retry-wait>5000</vote-retry-wait> > <retry-replication-wait>2000</retry-replication-wait> > <quorum-vote-wait>30</quorum-vote-wait> > </slave> > </replication> > </ha-policy> > <cluster-connections> > <cluster-connection name="cluster"> > <connector-ref>local</connector-ref> > <check-period>30000</check-period> > <connection-ttl>60000</connection-ttl> > <min-large-message-size>102400</min-large-message-size> > <call-timeout>30000</call-timeout> > <retry-interval>2000</retry-interval> > <retry-interval-multiplier>1.0</retry-interval-multiplier> > <max-retry-interval>2000</max-retry-interval> > <initial-connect-attempts>-1</initial-connect-attempts> > <reconnect-attempts>-1</reconnect-attempts> > <use-duplicate-detection>true</use-duplicate-detection> > <message-load-balancing>ON_DEMAND</message-load-balancing> > <max-hops>1</max-hops> > <confirmation-window-size>10485760</confirmation-window-size> > <producer-window-size>-1</producer-window-size> > <call-failover-timeout>-1</call-failover-timeout> > <notification-interval>1000</notification-interval> > <notification-attempts>2</notification-attempts> > <static-connectors> > <connector-ref>toA1</connector-ref> > </static-connectors> > </cluster-connection> > </cluster-connections> > {quote} > -- This message was sent by Atlassian Jira (v8.20.10#820010)