Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TaskExecutorBuilder only uses second-precision when configuring the await termination period #22604

Closed
wants to merge 1 commit into from

Conversation

ttddyy
Copy link
Contributor

@ttddyy ttddyy commented Jul 27, 2020

Prior to this change, TaskExecutorBuilder used second as its precision to
map awaitTerminationPeriod value. This caused a loss of millisecond information
in the period.
This commit fixes the loss by converting the period to millisecond and use the
setAwaitTerminationMillis on executor/scheduler.

Prior to this change, `TaskExecutorBuilder` used *second* as its precision to
map `awaitTerminationPeriod` value. This caused a loss of millisecond information
in the period.
This commit fixes the loss by converting the period to millisecond and use the
`setAwaitTerminationMillis` on executor/scheduler.
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 27, 2020
@wilkinsona wilkinsona added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 28, 2020
@wilkinsona wilkinsona added this to the 2.2.x milestone Jul 28, 2020
@wilkinsona wilkinsona self-assigned this Jul 28, 2020
@wilkinsona wilkinsona changed the title Use mills to map awaitTerminationPeriod in TaskExecutorBuilder TaskExecutorBuilder only uses second-precision when configuring the await termination period Jul 28, 2020
@snicoll
Copy link
Member

snicoll commented Jul 28, 2020

@wilkinsona I am not sure I'd qualify this as a bug. This feature did not exist in Spring Framework before 5.2.4, see spring-projects/spring-framework#24496

@wilkinsona
Copy link
Member

Thanks very much, @ttddyy.

wilkinsona pushed a commit that referenced this pull request Jul 28, 2020
Prior to this change, TaskExecutorBuilder used seconds as its precision
to map the awaitTerminationPeriod value. This caused a loss of
millisecond information in the period.

This commit fixes the loss by converting the period to millisecond and
using setAwaitTerminationMillis to configure the executor.

See gh-22604
@ttddyy ttddyy deleted the task-executor-builder branch July 28, 2020 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants