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

Function failure_recovery

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

Source from the content-addressed store, hash-verified

289
290 #[test]
291 fn failure_recovery() {
292 let mut m = test_migration();
293 m.start_base_copy(100);
294 m.fail("network partition".into());
295 assert!(!m.is_active());
296 assert!(matches!(m.phase, MigrationPhase::Failed { .. }));
297 }
298
299 #[test]
300 fn catchup_threshold() {

Callers

nothing calls this directly

Calls 3

test_migrationFunction · 0.85
start_base_copyMethod · 0.80
failMethod · 0.45

Tested by

no test coverage detected