Skip to content

SimpleAsyncTaskScheduler: consistently apply default error handling #32298

Closed
@zyro23

Description

Affects: 6.1.4 (virtual threads enabled)


SimpleAsyncTaskScheduler does apply default error handling (and logging) for:

but does not apply it for:

i think default error handling (especially logging) should be applied in all cases.

ill reference a repro sample app that uses schedule(Runnable task, Instant startTime).
running the app, you can see corresponding stderr output but no other handling/logging taking place:

2024-02-20T12:46:53.948+01:00  INFO 2924 --- [           main] com.example.demo.DemoApplication         : Started DemoApplication in 0.605 seconds (process running for 0.99)
Exception in thread "scheduling-2" java.lang.IllegalStateException: o.O
	at com.example.demo.Sample.lambda$init$0(Sample.java:21)
	at java.base/java.lang.VirtualThread.run(VirtualThread.java:309)

thanks & regards.

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions