Title: AsyncEventHandler drops impressions/conversions on a transient HTTP 5xx · Issue #644 · optimizely/java-sdk · GitHub
Open Graph Title: AsyncEventHandler drops impressions/conversions on a transient HTTP 5xx · Issue #644 · optimizely/java-sdk
X Title: AsyncEventHandler drops impressions/conversions on a transient HTTP 5xx · Issue #644 · optimizely/java-sdk
Description: AsyncEventHandler.EventDispatcher.run() makes a single httpClient.execute(...); the response handler throws on any non-2xx, which happens after the client's transport retry (it only retries IOExceptions), and the catch just logs it. So o...
Open Graph Description: AsyncEventHandler.EventDispatcher.run() makes a single httpClient.execute(...); the response handler throws on any non-2xx, which happens after the client's transport retry (it only retries IOExcep...
X Description: AsyncEventHandler.EventDispatcher.run() makes a single httpClient.execute(...); the response handler throws on any non-2xx, which happens after the client's transport retry (it only retries IOE...
Opengraph URL: https://github.com/optimizely/java-sdk/issues/644
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AsyncEventHandler drops impressions/conversions on a transient HTTP 5xx","articleBody":"`AsyncEventHandler.EventDispatcher.run()` makes a single `httpClient.execute(...)`; the response handler throws on any non-2xx, which happens after the client's transport retry (it only retries `IOException`s), and the `catch` just logs it. So one 500/502/503 from the events endpoint silently drops the impression or conversion. Two tests added to `AsyncEventHandlerTest` fail on master and reproduce it. Proposal: retry 5xx only (not 4xx) a bounded number of times (e.g. 3 attempts, 100/200 ms backoff) in the dispatcher; a retry after a 5xx that arrived post-acceptance could duplicate an event, so I'd also be fine making it configurable or off by default. Happy to open a PR with whichever policy you prefer.\n\nThis comment was prepared with assistance from an AI coding assistant (Anthropic Claude).\n","author":{"url":"https://github.com/pcbeingused333","@type":"Person","name":"pcbeingused333"},"datePublished":"2026-11-14T20:42:34Z","url":"https://github.com/optimizely/java-sdk/issues/644"}
| 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:7f0e547e-81b7-b395-8ff1-aace3180b4f4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D870:1DE2E0:859D9D:BCD7D4:6B0453B3 |
| html-safe-nonce | ab27d570cf1016bc0ad1dde0333548ffec8fa6f206970327dbb3d0b779b19f27 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODcwOjFERTJFMDo4NTlEOUQ6QkNEN0Q0OjZCMDQ1M0IzIiwidmlzaXRvcl9pZCI6IjMyNDA0NTY4OTQyMzc5MjIyMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0d5aa1d9faf885025958935c9f7870c5da82767e6ae32c0d5334bff5d4513a2a |
| hovercard-subject-tag | issue:6395712893 |
| 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/optimizely/java-sdk/644/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0775d156cfa09a1744e676442ae2a68b41d046bb670bffe34f8f0cdb42cfac4f/optimizely/java-sdk/issues/644 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0775d156cfa09a1744e676442ae2a68b41d046bb670bffe34f8f0cdb42cfac4f/optimizely/java-sdk/issues/644 |
| og:image:alt | AsyncEventHandler.EventDispatcher.run() makes a single httpClient.execute(...); the response handler throws on any non-2xx, which happens after the client's transport retry (it only retries IOExcep... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pcbeingused333 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| turbo-cache-control | no-preview |
| go-import | github.com/optimizely/java-sdk git https://github.com/optimizely/java-sdk.git |
| octolytics-dimension-user_id | 1274132 |
| octolytics-dimension-user_login | optimizely |
| octolytics-dimension-repository_id | 64257587 |
| octolytics-dimension-repository_nwo | optimizely/java-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 64257587 |
| octolytics-dimension-repository_network_root_nwo | optimizely/java-sdk |
| 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 | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| 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