Title: Main application hangs if it initializes a KafkaProducer with sentry-java 6.19.1 · Issue #2744 · getsentry/sentry-java · GitHub
Open Graph Title: Main application hangs if it initializes a KafkaProducer with sentry-java 6.19.1 · Issue #2744 · getsentry/sentry-java
X Title: Main application hangs if it initializes a KafkaProducer with sentry-java 6.19.1 · Issue #2744 · getsentry/sentry-java
Description: Integration sentry Java Version eclipse-temurin:11-jre Version 6.19.1 upwards Steps to Reproduce Build this file with sentry-sdk 6.19.1: import org.apache.kafka.clients.producer.KafkaProducer class ReproduceSentryIssue { private val kafk...
Open Graph Description: Integration sentry Java Version eclipse-temurin:11-jre Version 6.19.1 upwards Steps to Reproduce Build this file with sentry-sdk 6.19.1: import org.apache.kafka.clients.producer.KafkaProducer class...
X Description: Integration sentry Java Version eclipse-temurin:11-jre Version 6.19.1 upwards Steps to Reproduce Build this file with sentry-sdk 6.19.1: import org.apache.kafka.clients.producer.KafkaProducer class...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/2744
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Main application hangs if it initializes a KafkaProducer with sentry-java 6.19.1","articleBody":"### Integration\r\n\r\nsentry\r\n\r\n### Java Version\r\n\r\neclipse-temurin:11-jre\r\n\r\n### Version\r\n\r\n6.19.1 upwards\r\n\r\n### Steps to Reproduce\r\n\r\nBuild this file with sentry-sdk 6.19.1:\r\n\r\n```kotlin\r\n\r\nimport org.apache.kafka.clients.producer.KafkaProducer\r\n\r\nclass ReproduceSentryIssue {\r\n private val kafkaProducer: KafkaProducer\u003cString, String> =\r\n KafkaProducer(...)\r\n\r\n companion object {\r\n\r\n @JvmStatic\r\n fun main(args: Array\u003cString>) {\r\n ReproduceSentryIssue()\r\n }\r\n }\r\n}\r\n```\r\n\r\nRun it with a logback appender:\r\n\r\n```xml\r\n \u003c!-- Configure the Sentry appender, overriding the logging threshold to the WARN level -->\r\n \u003cappender name=\"Sentry\" class=\"io.sentry.logback.SentryAppender\">\r\n \u003c!-- Optionally change minimum Event level. Default for Events is ERROR -->\r\n \u003cminimumEventLevel>WARN\u003c/minimumEventLevel>\r\n \u003c!-- Optionally change minimum Breadcrumbs level. Default for Breadcrumbs is INFO -->\r\n \u003cminimumBreadcrumbLevel>INFO\u003c/minimumBreadcrumbLevel>\r\n \u003c/appender>\r\n```\r\n\r\nRun it on docker image `FROM eclipse-temurin:11-jre`\r\n\r\nResult:\r\n\r\n- Main application never exists, it never returns.\r\n\r\n\r\nWorkaround: Downgrade to 6.18.1\r\n\r\nNote: Also reproducable with 6.20.1\r\n\r\n\r\n### Expected Result\r\n\r\nThe application should cleanly exit\r\n\r\n### Actual Result\r\n\r\nIt hangs, only stops with CTRL-C","author":{"url":"https://github.com/tjerkw","@type":"Person","name":"tjerkw"},"datePublished":"2023-05-29T18:27:39Z","url":"https://github.com/getsentry/sentry-java/issues/2744"}
| 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:00013f48-7824-c746-5fd3-d1f060ccaa55 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 828C:140E26:83BD4:B2152:6B04291C |
| html-safe-nonce | b1bba8665dd04619da791dab573c11b31c50a5726e54aba77c00f25a9eb29f9d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjhDOjE0MEUyNjo4M0JENDpCMjE1Mjo2QjA0MjkxQyIsInZpc2l0b3JfaWQiOiI2MTY2MzY3Mzc3MTA2OTM4MTQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8defa5a3695288a0c80009a21331563e9c9be5e1f39ccaedbdc6f85116e3539d |
| hovercard-subject-tag | issue:1731113380 |
| 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/2744/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5014a613233f265be845560d29150006f56f3af0f2b4668411bfade643a4fc22/getsentry/sentry-java/issues/2744 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5014a613233f265be845560d29150006f56f3af0f2b4668411bfade643a4fc22/getsentry/sentry-java/issues/2744 |
| og:image:alt | Integration sentry Java Version eclipse-temurin:11-jre Version 6.19.1 upwards Steps to Reproduce Build this file with sentry-sdk 6.19.1: import org.apache.kafka.clients.producer.KafkaProducer class... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tjerkw |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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