Title: Flaky test: JvmThreadsMetricsTest.testInvalidThreadIds · Issue #1971 · prometheus/client_java · GitHub
Open Graph Title: Flaky test: JvmThreadsMetricsTest.testInvalidThreadIds · Issue #1971 · prometheus/client_java
X Title: Flaky test: JvmThreadsMetricsTest.testInvalidThreadIds · Issue #1971 · prometheus/client_java
Description: Description JvmThreadsMetricsTest.testInvalidThreadIds is flaky — it counts threads by state between two scrapes, but background threads (GC, JIT, etc.) can start between the snapshots, causing a mismatch. Seen on Java 17 CI: expected: 6...
Open Graph Description: Description JvmThreadsMetricsTest.testInvalidThreadIds is flaky — it counts threads by state between two scrapes, but background threads (GC, JIT, etc.) can start between the snapshots, causing a m...
X Description: Description JvmThreadsMetricsTest.testInvalidThreadIds is flaky — it counts threads by state between two scrapes, but background threads (GC, JIT, etc.) can start between the snapshots, causing a m...
Opengraph URL: https://github.com/prometheus/client_java/issues/1971
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Flaky test: JvmThreadsMetricsTest.testInvalidThreadIds","articleBody":"## Description\n\n`JvmThreadsMetricsTest.testInvalidThreadIds` is flaky — it counts threads\nby state between two scrapes, but background threads (GC, JIT, etc.) can\nstart between the snapshots, causing a mismatch.\n\nSeen on Java 17 CI:\n\n```text\nexpected: 6.0\n but was: 7.0\n```\n\nat line 139.\n\n## Suggested fix\n\nInstead of comparing exact counts, compare the *delta* (or use\n`isGreaterThanOrEqualTo` for states that can only grow).","author":{"url":"https://github.com/zeitlinger","@type":"Person","name":"zeitlinger"},"datePublished":"2026-03-19T18:28:00Z","url":"https://github.com/prometheus/client_java/issues/1971"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bf0428dc-3dac-c861-41a7-a0b137a44b84 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C08C:116731:2B6BA7:39E8F5:6AFBB80A |
| html-safe-nonce | e5331aa577a117ff8d2e386ea2b8f792ad276741b1330ca50261a659d5ad6b10 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDhDOjExNjczMToyQjZCQTc6MzlFOEY1OjZBRkJCODBBIiwidmlzaXRvcl9pZCI6IjUxOTIxMzcyOTEwNjQ5MTU5NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 668e8841c49f7c9f4163f377a228ac330592647eb6d7b21dd5f24cf44b5c819f |
| hovercard-subject-tag | issue:4103451761 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/prometheus/client_java/1971/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ec063e564f28c1c487c4e3b7dee051d4dec517f2fb8b68462feb05edfdb8add7/prometheus/client_java/issues/1971 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ec063e564f28c1c487c4e3b7dee051d4dec517f2fb8b68462feb05edfdb8add7/prometheus/client_java/issues/1971 |
| og:image:alt | Description JvmThreadsMetricsTest.testInvalidThreadIds is flaky — it counts threads by state between two scrapes, but background threads (GC, JIT, etc.) can start between the snapshots, causing a m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zeitlinger |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c |
| turbo-cache-control | no-preview |
| go-import | github.com/prometheus/client_java git https://github.com/prometheus/client_java.git |
| octolytics-dimension-user_id | 3380462 |
| octolytics-dimension-user_login | prometheus |
| octolytics-dimension-repository_id | 7997879 |
| octolytics-dimension-repository_nwo | prometheus/client_java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7997879 |
| octolytics-dimension-repository_network_root_nwo | prometheus/client_java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e4cce0e99cf61481a318ff12c2e8580153a6c7c6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width