Closed luukveenis closed 1 month ago
@luukveenis Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
@luukveenis Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
@luukveenis Thank you for signing the Contributor License Agreement!
@luukveenis thanks! I took the liberty to add a test to your PR.
@luukveenis thanks! I took the liberty to add a test to your PR.
Sorry I meant to add one, thank you!
Thank you for the contribution, @luukveenis 🚀
This fixes an issue where wrapping a
BoundedElasticThreadPerTaskScheduler
withMicrometer#timedScheduler()
causes it to error out immediately.The TimedScheduler class doesn't currently override the
init()
method, so it calls the default from the interface, which delegates tostart()
. This works fine for other scheduler implementations because they still implementstart()
, but for the virtual thread scheduler, it simply throws an error. When we wrap it in a timed scheduler, it crashes on this error as soon asinit()
gets called.