Skip to content

Convert the overdue time in Deadline#format - #1537

Merged
ok2c merged 1 commit into
apache:masterfrom
sharanggupta:deadline-format-converts-unit
Nov 25, 2026
Merged

ok2c merged 1 commit into
apache:masterfrom
sharanggupta:deadline-format-converts-unit

Conversation

@sharanggupta

Copy link
Copy Markdown
Contributor

Deadline#format(TimeUnit) labels the remaining milliseconds with the given unit without converting them, so a deadline that is five seconds away prints as 5000 SECONDS. The value is now converted to the given unit; TestDeadline#testFormatConvertsToTheGivenTimeUnit fails without the change.

format(TimeUnit) labelled the remaining milliseconds with the given
unit without converting them, so five seconds printed as
"5000 SECONDS".
@ok2c

ok2c commented Nov 25, 2026

Copy link
Copy Markdown
Member

@sharanggupta Nasty. Good catch!

@ok2c
ok2c merged commit cd578aa into apache:master Nov 25, 2026
12 checks passed
@ok2c ok2c added this to the 5.5.1 milestone Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants