Skip to content

Add graceful shutdown #16860

Add graceful shutdown

Add graceful shutdown #16860

GitHub Actions / Java CI / Test Report (21) failed Apr 19, 2024 in 0s

15399 tests run, 15294 passed, 104 skipped, 1 failed.

Annotations

Check failure on line 60 in management/src/test/groovy/io/micronaut/management/health/aggregator/HealthAggregatorSpec.groovy

See this annotation in the file changed.

@github-actions github-actions / Java CI / Test Report (21)

HealthAggregatorSpec.test that only log statements for level TRACE are emitted

Condition not satisfied:

appender.events[2] == 'Health result for gracefulShutdown: status UP, details {}'
|        |     |   |
|        |     |   false
|        |     |   280 differences (16% similarity)
|        |     |   Health result for gracefulShutdown: status UP, details (CombinedShutdownState[members=){(NettyHttpServer=CombinedShutdownState[members={null:-1=CombinedShutdownState[members={c:127.0.0.1:52556 s:127.0.0.1:45653 cid:000d3afffe5d01f1-00006852-000000b8-23210ece91d78309-58b703ad=SingleShutdownState[description=Waiting to write response])}(]}]}])
|        |     |   Health result for gracefulShutdown: status UP, details (------------------------------){(-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------)}(-----)
|        |     Health result for gracefulShutdown: status UP, details CombinedShutdownState[members={NettyHttpServer=CombinedShutdownState[members={null:-1=CombinedShutdownState[members={c:127.0.0.1:52556 s:127.0.0.1:45653 cid:000d3afffe5d01f1-00006852-000000b8-23210ece91d78309-58b703ad=SingleShutdownState[description=Waiting to write response]}]}]}]
|        [Health result for compositeDiscoveryClient(): status UP, details {services={}}, Health result for diskSpace: status UP, details {total=77851254784, free=26899312640, threshold=10485760}, Health result for gracefulShutdown: status UP, details CombinedShutdownState[members={NettyHttpServer=CombinedShutdownState[members={null:-1=CombinedShutdownState[members={c:127.0.0.1:52556 s:127.0.0.1:45653 cid:000d3afffe5d01f1-00006852-000000b8-23210ece91d78309-58b703ad=SingleShutdownState[description=Waiting to write response]}]}]}], Health result for jdbc: status UP, details {jdbc:h2:mem:oneDb=io.micronaut.management.health.indicator.DefaultHealthResult@32175134}, Health result for jdbc:h2:mem:oneDb: status UP, details {database=H2, version=2.2.224 (2023-09-17)}, Health result for liveness: status UP, details {}, Health result for readiness: status UP, details {}, Health result for service: status UP, details {}]
io.micronaut.management.health.aggregator.HealthAggregatorSpec$MemoryAppender[null]
Raw output
Condition not satisfied:

appender.events[2] == 'Health result for gracefulShutdown: status UP, details {}'
|        |     |   |
|        |     |   false
|        |     |   280 differences (16% similarity)
|        |     |   Health result for gracefulShutdown: status UP, details (CombinedShutdownState[members=){(NettyHttpServer=CombinedShutdownState[members={null:-1=CombinedShutdownState[members={c:127.0.0.1:52556 s:127.0.0.1:45653 cid:000d3afffe5d01f1-00006852-000000b8-23210ece91d78309-58b703ad=SingleShutdownState[description=Waiting to write response])}(]}]}])
|        |     |   Health result for gracefulShutdown: status UP, details (------------------------------){(-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------)}(-----)
|        |     Health result for gracefulShutdown: status UP, details CombinedShutdownState[members={NettyHttpServer=CombinedShutdownState[members={null:-1=CombinedShutdownState[members={c:127.0.0.1:52556 s:127.0.0.1:45653 cid:000d3afffe5d01f1-00006852-000000b8-23210ece91d78309-58b703ad=SingleShutdownState[description=Waiting to write response]}]}]}]
|        [Health result for compositeDiscoveryClient(): status UP, details {services={}}, Health result for diskSpace: status UP, details {total=77851254784, free=26899312640, threshold=10485760}, Health result for gracefulShutdown: status UP, details CombinedShutdownState[members={NettyHttpServer=CombinedShutdownState[members={null:-1=CombinedShutdownState[members={c:127.0.0.1:52556 s:127.0.0.1:45653 cid:000d3afffe5d01f1-00006852-000000b8-23210ece91d78309-58b703ad=SingleShutdownState[description=Waiting to write response]}]}]}], Health result for jdbc: status UP, details {jdbc:h2:mem:oneDb=io.micronaut.management.health.indicator.DefaultHealthResult@32175134}, Health result for jdbc:h2:mem:oneDb: status UP, details {database=H2, version=2.2.224 (2023-09-17)}, Health result for liveness: status UP, details {}, Health result for readiness: status UP, details {}, Health result for service: status UP, details {}]
io.micronaut.management.health.aggregator.HealthAggregatorSpec$MemoryAppender[null]

	at io.micronaut.management.health.aggregator.HealthAggregatorSpec.test that only log statements for level #logLevel are emitted(HealthAggregatorSpec.groovy:60)