Title: Requests are not processed and can see them stuck in requestQueue · Issue #1065 · scribejava/scribejava · GitHub
Open Graph Title: Requests are not processed and can see them stuck in requestQueue · Issue #1065 · scribejava/scribejava
X Title: Requests are not processed and can see them stuck in requestQueue · Issue #1065 · scribejava/scribejava
Description: version: 6.5.0 Hi team, We're experiencing intermittent issue with requests processing where the requests are stuck in queue but not processed. I'll try to explain in detail about the situation and my understanding about Scribe Java lib:...
Open Graph Description: version: 6.5.0 Hi team, We're experiencing intermittent issue with requests processing where the requests are stuck in queue but not processed. I'll try to explain in detail about the situation and...
X Description: version: 6.5.0 Hi team, We're experiencing intermittent issue with requests processing where the requests are stuck in queue but not processed. I'll try to explain in detail about the situa...
Opengraph URL: https://github.com/scribejava/scribejava/issues/1065
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Requests are not processed and can see them stuck in requestQueue","articleBody":"version: 6.5.0\r\n\r\nHi team,\r\n\r\nWe're experiencing intermittent issue with requests processing where the requests are stuck in queue but not processed. I'll try to explain in detail about the situation and my understanding about Scribe Java lib:\r\n\r\n- Whenever requests are made using scribe java, there won't be any response back to the client and the requests stuck there for hours until restart of jvm is performed.\r\n- Scribejava has ApacheHttpClient that does actual requests to target server. This underlying httpclient has queue mechanism for processing the requests where the requests are added into a queue and processed in async manner. \r\n```\r\n java.lang.Thread.State: WAITING (parking)\r\n\tat sun.misc.Unsafe.park(Native Method)\r\n\t- parking to wait for \u003c0x00000000b150e370\u003e (a java.util.concurrent.CountDownLatch$Sync)\r\n\tat java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)\r\n\tat java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:836)\r\n\tat java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:997)\r\n\tat java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1304)\r\n\tat java.util.concurrent.CountDownLatch.await(CountDownLatch.java:231)\r\n\tat com.github.scribejava.httpclient.apache.OAuthAsyncCompletionHandler.getResult(OAuthAsyncCompletionHandler.java:91)\r\n\tat com.github.scribejava.httpclient.apache.ApacheHttpFuture.get(ApacheHttpFuture.java:37)\r\n\tat com.github.scribejava.core.httpclient.AbstractAsyncOnlyHttpClient.execute(AbstractAsyncOnlyHttpClient.java:35)\r\n\tat com.github.scribejava.core.oauth.OAuthService.execute(OAuthService.java:105)\r\n```\r\n- Looking at stacktrace from our thread dump, thread is waiting for the response from this client and we were under assumption that is could be connect timeout issues, this is what we're focusing on from last few weeks.\r\n- Therefore, we added connection timeout setting for all calls.\r\n- I can see that issue is reproducing even after applying connect timeout setting for client object. There is something else that is causing the issue for which I started analyzing heap dump for.\r\n\r\nHeap dump analysis:\r\n- From the heap dump, I can see that there are requests stuck in `requestQueue` but not picked up by ioReactor thread.\r\n\r\n- InternalHttpAsyncClient 'status' is STOPPED.\r\n\r\n- IOReactor 'status' is ACTIVE\r\n\r\n- IOReactor execute() looks like stuck or terminated when creating dispatcher threads.\r\n\r\n\r\nI tried to understand the flow of execution, and if I understood it correctly somehow the execute() method from `AbstractMultiworkerIOReactor` got terminated at marked section below:\r\n\r\n\r\nI would like to request you to look at this issue and help me figuring out what's causing the behavior, is it a bug in code or due to performance reasons? I know it is bit older version but upgrading to latest version can fix the issue? It is not easily reproducible and happens randomly without any pattern.\r\n\r\n_Note that heap dump is collected after 2 hrs of the issue is reproduced._\r\n\r\nAppreciate your help!\r\n\r\nThanks \u0026 Regards,\r\nKarthik","author":{"url":"https://github.com/karthik-119","@type":"Person","name":"karthik-119"},"datePublished":"2023-09-11T06:15:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1065/scribejava/issues/1065"}
| 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:f6ff8f9d-be12-d2db-f37a-ffbfee14adb5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8082:1D7C0C:16FB7:1DF74:6973F24C |
| html-safe-nonce | 608a6b22457a3d5d80100ac92418cd046122185b941beaea96724f1b022684a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDgyOjFEN0MwQzoxNkZCNzoxREY3NDo2OTczRjI0QyIsInZpc2l0b3JfaWQiOiIxMTExNTk2NzU2OTgzMDgzNTk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c64c3e30c09adff652d5540f94bd6ac9e505792d431da3d4ca055e2d921576e1 |
| hovercard-subject-tag | issue:1889744129 |
| 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/scribejava/scribejava/1065/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3ef88fe72c56cd0b1d0609c659ac7856f9167fec1fd2fa4025b0e0dc44e59d1d/scribejava/scribejava/issues/1065 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3ef88fe72c56cd0b1d0609c659ac7856f9167fec1fd2fa4025b0e0dc44e59d1d/scribejava/scribejava/issues/1065 |
| og:image:alt | version: 6.5.0 Hi team, We're experiencing intermittent issue with requests processing where the requests are stuck in queue but not processed. I'll try to explain in detail about the situation and... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | karthik-119 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 99794f659b61e238a7ec37595eeb36b54a0ba1f2ae246f51ccb8ac5e4f08812e |
| turbo-cache-control | no-preview |
| go-import | github.com/scribejava/scribejava git https://github.com/scribejava/scribejava.git |
| octolytics-dimension-user_id | 15140551 |
| octolytics-dimension-user_login | scribejava |
| octolytics-dimension-repository_id | 889932 |
| octolytics-dimension-repository_nwo | scribejava/scribejava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 889932 |
| octolytics-dimension-repository_network_root_nwo | scribejava/scribejava |
| 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 | 8b15a65f03216f079a4ae509ff400d3e2ce03b58 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width