Title: Session-end timer runs on java.util.Timer · Issue #5576 · getsentry/sentry-java · GitHub
Open Graph Title: Session-end timer runs on java.util.Timer · Issue #5576 · getsentry/sentry-java
X Title: Session-end timer runs on java.util.Timer · Issue #5576 · getsentry/sentry-java
Description: Audit finding B2 — actual bug, MEDIUM. LifecycleWatcher schedules session end with java.util.Timer (new Timer(true) / scheduleEndSession, sentry-android-core/src/main/java/io/sentry/android/core/LifecycleWatcher.java:106-122), sharing B1...
Open Graph Description: Audit finding B2 — actual bug, MEDIUM. LifecycleWatcher schedules session end with java.util.Timer (new Timer(true) / scheduleEndSession, sentry-android-core/src/main/java/io/sentry/android/core/Li...
X Description: Audit finding B2 — actual bug, MEDIUM. LifecycleWatcher schedules session end with java.util.Timer (new Timer(true) / scheduleEndSession, sentry-android-core/src/main/java/io/sentry/android/core/Li...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/5576
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Session-end timer runs on java.util.Timer","articleBody":"Audit finding **B2 — actual bug, MEDIUM**.\n\n`LifecycleWatcher` schedules session end with `java.util.Timer` (`new Timer(true)` / `scheduleEndSession`, `sentry-android-core/src/main/java/io/sentry/android/core/LifecycleWatcher.java:106-122`), sharing B1's mechanics:\n\n* Device sleeps within the 30s background window → session ends only at wake; `Session.end()` stamps wake time → inflated session durations in release health. Replay `stop()` and `ContinuousProfiler.close(false)` also run hours late.\n* The foreground check `lastUpdatedSession + sessionIntervalMillis \u003c= now` is a wall-clock interval → a clock step causes spurious or missed session rotation.\n\nSource: [JAVA-557](\u003chttps://linear.app/getsentry/issue/JAVA-557/clock-usage-audit-wall-vs-monotonic-time-issues-across-the-sdk>) §B2.","author":{"url":"https://github.com/runningcode","@type":"Person","name":"runningcode"},"datePublished":"2026-06-22T09:04:29Z","url":"https://github.com/getsentry/sentry-java/issues/5576"}
| 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:3379e4e2-74dd-edf8-c90d-6cb96654d08e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBAA:3ABDFB:1A51F2:2464C6:6B046648 |
| html-safe-nonce | ff35a8cee135e84d9334cae49e0b9038729b06308c4b32b6567d2e7ff064d213 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkFBOjNBQkRGQjoxQTUxRjI6MjQ2NEM2OjZCMDQ2NjQ4IiwidmlzaXRvcl9pZCI6Ijc4NjYyNjAyNTU0MTg5MDIwODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ef6d93e14c10678e836b8f2196eb52ce10dfb9f05f23cbacc690402d0ea93002 |
| hovercard-subject-tag | issue:4715075443 |
| 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/getsentry/sentry-java/5576/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b97fe5c992376bb7ffe6c08fc9f50a2b78aa60e1b2a9ef1d083e156f2f7ec4e1/getsentry/sentry-java/issues/5576 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b97fe5c992376bb7ffe6c08fc9f50a2b78aa60e1b2a9ef1d083e156f2f7ec4e1/getsentry/sentry-java/issues/5576 |
| og:image:alt | Audit finding B2 — actual bug, MEDIUM. LifecycleWatcher schedules session end with java.util.Timer (new Timer(true) / scheduleEndSession, sentry-android-core/src/main/java/io/sentry/android/core/Li... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | runningcode |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width