The period and delay fields in GrpcServerHealthProperties.Schedule default to
5 seconds, but they do not declare @DurationUnit(ChronoUnit.SECONDS).
As a result, bare number values such as
spring.grpc.server.health.schedule.period=5 are bound as 5 milliseconds.
I noticed that the other Duration fields in GrpcServerProperties explicitly use
@DurationUnit(ChronoUnit.SECONDS), for example:
Shutdown.gracePeriod
Keepalive.time, Keepalive.timeout
Keepalive.Permit.time
Keepalive.Connection.maxIdleTime, maxAge, gracePeriod
I couldn't tell if the current behavior for period and delay is intentional or if
these two fields were meant to follow the same pattern.
The
periodanddelayfields inGrpcServerHealthProperties.Scheduledefault to5 seconds, but they do not declare
@DurationUnit(ChronoUnit.SECONDS).As a result, bare number values such as
spring.grpc.server.health.schedule.period=5are bound as 5 milliseconds.I noticed that the other
Durationfields inGrpcServerPropertiesexplicitly use@DurationUnit(ChronoUnit.SECONDS), for example:Shutdown.gracePeriodKeepalive.time,Keepalive.timeoutKeepalive.Permit.timeKeepalive.Connection.maxIdleTime,maxAge,gracePeriodI couldn't tell if the current behavior for
periodanddelayis intentional or ifthese two fields were meant to follow the same pattern.