Implement in-process multi-dataset sync isolation across core, network, persistence, and tests
All checks were successful
NuGet Package Publish / nuget (push) Successful in 1m14s

This commit is contained in:
Joseph Doherty
2026-02-22 11:58:34 -05:00
parent c06b56172a
commit 8e97061ab8
60 changed files with 4519 additions and 559 deletions

View File

@@ -138,7 +138,10 @@ public class SyncOrchestratorMaintenancePruningTests
await orchestrator.RunMaintenanceIfDueAsync(config, DateTime.UtcNow, CancellationToken.None);
await oplogStore.DidNotReceive().PruneOplogAsync(Arg.Any<HlcTimestamp>(), Arg.Any<CancellationToken>());
await oplogStore.DidNotReceive().PruneOplogAsync(
Arg.Any<HlcTimestamp>(),
Arg.Any<string>(),
Arg.Any<CancellationToken>());
}
/// <summary>
@@ -187,6 +190,7 @@ public class SyncOrchestratorMaintenancePruningTests
timestamp.PhysicalTime == 100 &&
timestamp.LogicalCounter == 0 &&
string.Equals(timestamp.NodeId, "node-local", StringComparison.Ordinal)),
DatasetId.Primary,
Arg.Any<CancellationToken>());
}
@@ -228,7 +232,10 @@ public class SyncOrchestratorMaintenancePruningTests
var now = DateTime.UtcNow;
await orchestrator.RunMaintenanceIfDueAsync(config, now, CancellationToken.None);
await oplogStore.DidNotReceive().PruneOplogAsync(Arg.Any<HlcTimestamp>(), Arg.Any<CancellationToken>());
await oplogStore.DidNotReceive().PruneOplogAsync(
Arg.Any<HlcTimestamp>(),
Arg.Any<string>(),
Arg.Any<CancellationToken>());
await orchestrator.RunMaintenanceIfDueAsync(config, now.AddMinutes(2), CancellationToken.None);
@@ -237,6 +244,7 @@ public class SyncOrchestratorMaintenancePruningTests
timestamp.PhysicalTime == 100 &&
timestamp.LogicalCounter == 0 &&
string.Equals(timestamp.NodeId, "node-local", StringComparison.Ordinal)),
DatasetId.Primary,
Arg.Any<CancellationToken>());
}
@@ -286,4 +294,4 @@ public class SyncOrchestratorMaintenancePruningTests
IsActive = isActive
};
}
}
}