MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / pause_budget_exceeded

Function pause_budget_exceeded

nodedb-cluster/src/migration.rs:276–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

274
275 #[test]
276 fn pause_budget_exceeded() {
277 let mut m = test_migration();
278 m.start_base_copy(100);
279 m.start_wal_catchup(0, 5);
280 m.update_wal_catchup(5, 5);
281
282 // Budget is 1000µs, estimated is 2000µs.
283 let err = m.start_cutover(2000).unwrap_err();
284 assert!(matches!(
285 err,
286 crate::ClusterError::MigrationPauseBudgetExceeded { .. }
287 ));
288 }
289
290 #[test]
291 fn failure_recovery() {

Callers

nothing calls this directly

Calls 5

test_migrationFunction · 0.85
start_base_copyMethod · 0.80
start_wal_catchupMethod · 0.80
update_wal_catchupMethod · 0.80
start_cutoverMethod · 0.80

Tested by

no test coverage detected