BackpressureHandler Tests
Tests
| Test |
Duration |
Result |
| should apply adaptive backoff based on queue utilization() |
3.358s |
passed |
| should apply exponential backoff on threshold exceeded() |
0.137s |
passed |
| should emit metrics for backpressure events() |
0.585s |
passed |
| should handle batch with partial failures due to threshold() |
0.094s |
passed |
| should prioritize files during backpressure() |
0.376s |
passed |
| should respect max retry attempts() |
0.038s |
passed |
| should timeout waiting for capacity() |
1.121s |
passed |
| should use circuit breaker pattern for repeated failures() |
0.051s |
passed |
| should wait for capacity before retry() |
0.048s |
passed |
Standard output
15:05:02.129 [Test worker @kotlinx.coroutines.test runner#43] WARN com.quantumsoft.tia.scanner.components.BackpressureHandler -- Circuit breaker opened after 5 consecutive failures
15:05:02.136 [Test worker @kotlinx.coroutines.test runner#43] WARN com.quantumsoft.tia.scanner.components.BackpressureHandler -- Circuit breaker is open, rejecting request
Standard error
WARNING: A Java agent has been loaded dynamically (/home/sts/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy-agent/1.14.19/154da3a65b4f4a909d3e5bdec55d1b2b4cbb6ce1/byte-buddy-agent-1.14.19.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release