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

Thread name prefix is not always set when using virtual threads #39958

Conversation

MazizEsa
Copy link

@MazizEsa MazizEsa commented Mar 17, 2024

Currently the thread names are missing for rabbit listener, pulsars' consumer and task executor.
This PR added the thread names for mentioned components following convention specified in other autoconfigs via RabbitAnnotationDrivenConfiguration and PulsarAutoconfiguration.

Tests are added as well to check the threads names are specified when threads are created (via java.util.concurrent.ThreadFactory#newThread) through the factory.

Request / bug ticket, #39748

@MazizEsa
Copy link
Author

cc. @mhalbritter @scottfrederick

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 17, 2024
@mhalbritter mhalbritter self-assigned this Mar 18, 2024
@mhalbritter mhalbritter changed the title Issue 39748 Added threadname for virtual thread rabbit and pulsar Thread name prefix is not always set when using virtual threads Mar 18, 2024
@mhalbritter mhalbritter added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 18, 2024
@mhalbritter mhalbritter added this to the 3.2.x milestone Mar 18, 2024
mhalbritter pushed a commit that referenced this pull request Mar 18, 2024
@mhalbritter
Copy link
Contributor

Thanks @MazizEsa! I've polished your changes a bit in 09652cb.

@mhalbritter mhalbritter modified the milestones: 3.2.x, 3.2.4 Mar 18, 2024
@MazizEsa
Copy link
Author

I see. You guys prefer that way. Got it.

ndwlocatieservices added a commit to ndwnu/nls-routing-map-matcher that referenced this pull request Dec 4, 2024
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [nu.ndw.nls.geometry:nls-geometry](https://spring.io/projects/spring-boot) ([source](https://github.com/spring-projects/spring-boot)) | compile | patch | `3.2.0` -> `3.2.4` |
| [commons-io:commons-io](https://commons.apache.org/proper/commons-io/) ([source](https://gitbox.apache.org/repos/asf?p=commons-io.git)) | compile | minor | `2.17.0` -> `2.18.0` |
| [org.springframework.boot:spring-boot-starter-parent](https://spring.io/projects/spring-boot) ([source](https://github.com/spring-projects/spring-boot)) | parent | minor | `3.3.5` -> `3.4.0` |

---

### Release Notes

<details>
<summary>spring-projects/spring-boot (nu.ndw.nls.geometry:nls-geometry)</summary>

### [`v3.2.4`](https://github.com/spring-projects/spring-boot/releases/tag/v3.2.4)

[Compare Source](spring-projects/spring-boot@v3.2.3...v3.2.4)

#### ⭐ New Features

-   Add TWENTY_TWO to JavaVersion enum [#&#8203;39825](spring-projects/spring-boot#39825)

#### 🐞 Bug Fixes

-   Thread name prefix is not always set when using virtual threads [#&#8203;39958](spring-projects/spring-boot#39958)
-   spring-boot-maven-plugin doesn't work with Java 22 [#&#8203;39927](spring-projects/spring-boot#39927)
-   Resolving a BuildpackReference created from a URL-like String can fail on Windows [#&#8203;39793](spring-projects/spring-boot#39793)
-   SpringProfile arbiter fails without a Spring's environment [#&#8203;39786](spring-projects/spring-boot#39786)
-   bootStartScripts tasks should be an instance of org.gradle.api.tasks.application.CreateStartScripts rather than its superclass org.gradle.jvm.application.tasks.CreateStartScripts [#&#8203;39764](spring-projects/spring-boot#39764)
-   When using Logback, log messages appear in a single line when application name contains brackets [#&#8203;39564](spring-projects/spring-boot#39564)

#### 📔 Documentation

-   Document support for Java 22 [#&#8203;40046](spring-projects/spring-boot#40046)
-   Fix web session javadoc typo [#&#8203;39821](spring-projects/spring-boot#39821)
-   Fix typo in Custom HTTP Exchange Recording section [#&#8203;39784](spring-projects/spring-boot#39784)
-   Make description of virtual threads and JVM exit easier to understand by removing "no-non" double-negative [#&#8203;39732](spring-projects/spring-boot#39732)

#### 🔨 Dependency Upgrades

-   Upgrade to Angus Mail 2.0.3 [#&#8203;39973](spring-projects/spring-boot#39973)
-   Upgrade to Glassfish JAXB 4.0.5 [#&#8203;39975](spring-projects/spring-boot#39975)
-   Upgrade to Graph...
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.

3 participants