Skip to content

Document Java server thread pool conventions - #19354

Open
JackieTien97 wants to merge 1 commit into
masterfrom
ty/server-thread-pool-guidance
Open

JackieTien97 wants to merge 1 commit into
masterfrom
ty/server-thread-pool-guidance

Conversation

@JackieTien97

Copy link
Copy Markdown
Contributor

Description

Document how Java server components can expose their thread pools through JMX and IoTDB metrics. The guidance covers choosing a factory or wrapped executor, naming pools, shutting them down with their owner, and enabling idle retirement when a workload needs it.

These conventions were discussed during review of #19344 and apply across server modules that use node-commons.

Verification

Checked the documented behavior against IoTDBThreadPoolFactory, WrappedThreadPoolExecutor, ThreadName, and ThreadPoolMetrics. The documentation diff passes git diff --check.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@codecov

codecov Bot commented Nov 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.43%. Comparing base (dd450f7) to head (e6314a9).

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #19354      +/-   ##
============================================
- Coverage     49.44%   49.43%   -0.01%     
  Complexity      718      718              
============================================
  Files          5656     5656              
  Lines        418222   418222              
  Branches      55296    55296              
============================================
- Hits         206769   206751      -18     
- Misses       211453   211471      +18     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant