You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
add unit test coverage for worker manager classes (StatisticsManager + SerializationManager) #5436
Two small stateful manager classes in amber/.../engine/architecture/worker/managers/, neither covered today.
Surface
Behavior to pin
StatisticsManager
Default zero state across all counters / accumulators; increaseInputStatistics / increaseOutputStatistics accumulate per-port count and size; require(size >= 0, ...) rejects negative sizes; getInputTupleCount / getOutputTupleCount sum across ports; getStatistics projects to WorkerStatistics (with idle time = total − dataProcessing − controlProcessing); increaseDataProcessingTime / increaseControlProcessingTime reject negative time; initializeWorkerStartTime + updateTotalExecutionTime together compute elapsed time, and updateTotalExecutionTime rejects times before workerStartTime.
SerializationManager
setOpInitialization records the InitializeExecutorRequest; restoreExecutorState requires actorId be a worker (not controller) and throws IllegalStateException otherwise; on OpExecWithClassName it instantiates via ExecFactory.newExecFromJavaClassName; on unsupported OpExecInitInfo it throws UnsupportedOperationException; non-CheckpointSupport executors return an empty restoration iterator. registerSerialization records a callback; applySerialization invokes it once and clears it (idempotent on second call).
Activity
test(amber): add unit test coverage for StatisticsManager + Serializa…
test(amber): add unit test coverage for StatisticsManager + Serializa…