Skip to content

fix: Replace static %d placeholders with AtomicInteger in thread factories#1583

Open
imyxiao wants to merge 1 commit intoNetflix:2.xfrom
imyxiao:2.x
Open

fix: Replace static %d placeholders with AtomicInteger in thread factories#1583
imyxiao wants to merge 1 commit intoNetflix:2.xfrom
imyxiao:2.x

Conversation

@imyxiao
Copy link

@imyxiao imyxiao commented Mar 22, 2025

Summary

Resolves thread naming issues caused by removing Guava's ThreadFactoryBuilder in #1526. Previously, thread names like Eureka-Worker-%d relied on Guava's formatting. This PR replaces %d with AtomicInteger to generate unique names (e.g., Eureka-Worker-1).

Changes

  • Added AtomicInteger to dynamically number threads.
  • Fixed 3-4 instances of thread factories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants