Stop consumers from committing past failed offsets, harden Rabbit/DataLake/gateway backpressure, dispose JsonDocument/MinIO correctly, and batch expensive DB/HTTP paths. Track progress in docs/performance.
1.1 KiB
1.1 KiB
Phase 44 — Hardening
| Field | Value |
|---|---|
| Status | Complete |
| Audit findings | 14, 16, 17, 18, 19, 20 |
| Depends on | Phase 43 |
Goal
Tighten lifecycle, concurrency, and startup paths that worsen under long-running operation.
What to build
- SimulationRunner: track run Task; await on stop (5s timeout)
- TrendDetector: Redis lock around GET/modify/SET history
- Paging workers: JsonDocument
using(Phase 42); poll interval 5s (was 2s) - PatientPhiMigrationService: keyset-batched updates (500)
- Light polish: deferred Parquet rewrite; health checks unchanged (low severity)
Key files
SimulationRunner.csTrendDetector.csPagingWorkerService.cs,LocalPagingWorkerService.csPatientPhiMigrationService.csParquetFileBuilder.cs, Kafka/Rabbit health checks
Acceptance criteria
- Simulation stop awaits tracked run task
- Trend history correct under concurrency
- PHI migration does not load fully migrated rows
- Suite green
Verification notes
- Simulation stop awaits tracked execute tasks.
- Trend history updates under a short Redis lock key.