Skip to content

Consider standardizing default thread name prefixes for MVC async executors #36846

@Mamun-Al-Babu-Shikder

Description

@Mamun-Al-Babu-Shikder

Description:

I noticed that the default thread name prefix used by MVC async execution differs from other task infrastructure components.

Current MVC async executor:

public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
		implements BeanFactoryAware, InitializingBean {

....
private class MvcSimpleAsyncTaskExecutor extends SimpleAsyncTaskExecutor {
....
      MvcSimpleAsyncTaskExecutor() {
          super("MvcAsync");
      }
....
}

produces thread names like:

MvcAsync1
MvcAsync2

while task scheduling infrastructure commonly uses prefixes such as:

task-1
task-2

using a hyphen separator and lower-case naming.

Is the current MvcAsync prefix intentional for historical or compatibility reasons?

I am not necessarily proposing a direct change because it would alter externally visible thread names and may impact logging or monitoring setups. I wanted to ask whether there has been discussion around standardizing naming conventions across Spring task-related infrastructure, perhaps for future major versions.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions