mirror of
https://git.proxmox.com/git/pve-manager
synced 2026-01-11 11:51:41 +00:00
Commit 3385399339c94 ("replication: keep retrying every 30 minutes in
error state") changed the retry behavior to not stop after the 3rd error
and then stick to half-hour intervals. This needs to be reflected in the
tests. The numbers here match. (1900 + 30*60 = 3700).
Commit fd844180a7efa ("replication: don't sync to offline targets on
error states) changed the retry behavior to check whether the target
node is online. If this is not the case we fail right away. This
introduced a dependency on PVE::Cluster::get_members which we now need
to mock. Tests currently use node names "node{1,2,3}", so I just mock
those 3.
26 lines
1.6 KiB
Plaintext
26 lines
1.6 KiB
Plaintext
1000 job_900_to_node2: new job next_sync => 900
|
|
1000 job_900_to_node2: start replication job
|
|
1000 job_900_to_node2: end replication job with error: faked replication error
|
|
1000 job_900_to_node2: changed config next_sync => 1300
|
|
1000 job_900_to_node2: changed state last_node => node1, last_try => 1000, fail_count => 1, error => faked replication error
|
|
1300 job_900_to_node2: start replication job
|
|
1300 job_900_to_node2: end replication job with error: faked replication error
|
|
1300 job_900_to_node2: changed config next_sync => 1900
|
|
1300 job_900_to_node2: changed state last_try => 1300, fail_count => 2
|
|
1900 job_900_to_node2: start replication job
|
|
1900 job_900_to_node2: end replication job with error: faked replication error
|
|
1900 job_900_to_node2: changed config next_sync => 3700
|
|
1900 job_900_to_node2: changed state last_try => 1900, fail_count => 3
|
|
3700 job_900_to_node2: start replication job
|
|
3700 job_900_to_node2: end replication job with error: faked replication error
|
|
3700 job_900_to_node2: changed config next_sync => 5500
|
|
3700 job_900_to_node2: changed state last_try => 3700, fail_count => 4
|
|
5500 job_900_to_node2: start replication job
|
|
5500 job_900_to_node2: end replication job with error: faked replication error
|
|
5500 job_900_to_node2: changed config next_sync => 7300
|
|
5500 job_900_to_node2: changed state last_try => 5500, fail_count => 5
|
|
7300 job_900_to_node2: start replication job
|
|
7300 job_900_to_node2: end replication job with error: faked replication error
|
|
7300 job_900_to_node2: changed config next_sync => 9100
|
|
7300 job_900_to_node2: changed state last_try => 7300, fail_count => 6
|