Title: Question: Thread safe · Issue #424 · jasync-sql/jasync-sql · GitHub
Open Graph Title: Question: Thread safe · Issue #424 · jasync-sql/jasync-sql
X Title: Question: Thread safe · Issue #424 · jasync-sql/jasync-sql
Description: Hi, I am currently using the jasync client in Vert.x. Is there a potential thread-safety issue with MySQLFrameDecoder? When we call sendQuery, it is executed on vert.x-eventloop-thread-0, where queryProcessStarted is invoked, setting thi...
Open Graph Description: Hi, I am currently using the jasync client in Vert.x. Is there a potential thread-safety issue with MySQLFrameDecoder? When we call sendQuery, it is executed on vert.x-eventloop-thread-0, where que...
X Description: Hi, I am currently using the jasync client in Vert.x. Is there a potential thread-safety issue with MySQLFrameDecoder? When we call sendQuery, it is executed on vert.x-eventloop-thread-0, where que...
Opengraph URL: https://github.com/jasync-sql/jasync-sql/issues/424
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Question: Thread safe","articleBody":"Hi, I am currently using the jasync client in Vert.x. Is there a potential thread-safety issue with MySQLFrameDecoder? When we call sendQuery, it is executed on vert.x-eventloop-thread-0, where queryProcessStarted is invoked, setting this.isInQuery = true. However, during decoding, it might switch to a different thread, such as vert.x-eventloop-thread-1. Could this cause this.isInQuery to become invisible? Should we add the volatile keyword to the relevant variable? Thanks\r\n\u003cimg width=\"496\" alt=\"image\" src=\"https://github.com/user-attachments/assets/5a6d5ce3-c1a8-46bd-b9ee-79cb6616071a\"\u003e\r\n\u003cimg width=\"489\" alt=\"image\" src=\"https://github.com/user-attachments/assets/fe56da29-df1d-4ed3-b343-cb674634b66e\"\u003e\r\n","author":{"url":"https://github.com/jinwik","@type":"Person","name":"jinwik"},"datePublished":"2024-08-13T09:02:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/424/jasync-sql/issues/424"}
| 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:dca223ab-bbc5-9c22-9329-d12d885042d2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF88:3C99FE:10339D6:14D8296:697E2A80 |
| html-safe-nonce | 5c9e316d49d7c576ceb952f725a38d5ba4e2be571145375b4ca72f00e9fd607f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjg4OjNDOTlGRToxMDMzOUQ2OjE0RDgyOTY6Njk3RTJBODAiLCJ2aXNpdG9yX2lkIjoiMzAwNzQwMDYwODU0Mjg5NDcyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a009c6fcba231a7d33653ef096d68dee3845759323963788b34e0da61c54198d |
| hovercard-subject-tag | issue:2462803833 |
| 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/jasync-sql/jasync-sql/424/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4c0c7a08bb54df821e8ea7ab3ba5e698b08915132f9b56fe04acfe82b029be1e/jasync-sql/jasync-sql/issues/424 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4c0c7a08bb54df821e8ea7ab3ba5e698b08915132f9b56fe04acfe82b029be1e/jasync-sql/jasync-sql/issues/424 |
| og:image:alt | Hi, I am currently using the jasync client in Vert.x. Is there a potential thread-safety issue with MySQLFrameDecoder? When we call sendQuery, it is executed on vert.x-eventloop-thread-0, where que... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jinwik |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/jasync-sql/jasync-sql git https://github.com/jasync-sql/jasync-sql.git |
| octolytics-dimension-user_id | 42655245 |
| octolytics-dimension-user_login | jasync-sql |
| octolytics-dimension-repository_id | 145898133 |
| octolytics-dimension-repository_nwo | jasync-sql/jasync-sql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145898133 |
| octolytics-dimension-repository_network_root_nwo | jasync-sql/jasync-sql |
| 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 | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width