Title: Transactions throw DbMaxReadersExceededException even when there are no active readers · Issue #1000 · objectbox/objectbox-java · GitHub
Open Graph Title: Transactions throw DbMaxReadersExceededException even when there are no active readers · Issue #1000 · objectbox/objectbox-java
X Title: Transactions throw DbMaxReadersExceededException even when there are no active readers · Issue #1000 · objectbox/objectbox-java
Description: Describe the bug When opening transactions in a rapid fashion on multiple threads DbMaxReadersExceededException is often thrown trying to start a transaction. I've created a test in a PR that will recreate this issue despite only allowin...
Open Graph Description: Describe the bug When opening transactions in a rapid fashion on multiple threads DbMaxReadersExceededException is often thrown trying to start a transaction. I've created a test in a PR that will ...
X Description: Describe the bug When opening transactions in a rapid fashion on multiple threads DbMaxReadersExceededException is often thrown trying to start a transaction. I've created a test in a PR that w...
Opengraph URL: https://github.com/objectbox/objectbox-java/issues/1000
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Transactions throw DbMaxReadersExceededException even when there are no active readers ","articleBody":"**Describe the bug**\r\nWhen opening transactions in a rapid fashion on multiple threads DbMaxReadersExceededException is often thrown trying to start a transaction. I've created a test in a PR that will recreate this issue despite only allowing one transaction to occur at a time. The issue seems related to running tests on a thread-pool.\r\n\r\nI suspect there is some code happening on the native side that is allowing the other transaction tests that do **not** use thread-pools to succeed despite rapid creation of transactions. \r\n\r\n**Basic info (please complete the following information):**\r\n - ObjectBox version (are you using the latest version?): 2.9.1\r\n - Reproducibility: Always (but I suspect this may be machine dependent)\r\n - Device: Desktop\r\n - OS: Windows\r\n\r\nI have created https://github.com/objectbox/objectbox-java/pull/999 that adds a test that failed on multiple of my development machines. In this test, we are creating transactions on an unbounded thread pool. However, we are synchronizing each transaction call so, in reality, only 1 transaction should be occurring a time. Despite this, we still receive DbMaxReadersExceededException issues. \r\n\r\n","author":{"url":"https://github.com/MrSlateZB","@type":"Person","name":"MrSlateZB"},"datePublished":"2021-07-19T20:02:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/1000/objectbox-java/issues/1000"}
| 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:9d1babef-61f4-0d68-93be-f978678d999a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA4A:147BB7:1B7BCD6:24D2CBB:6981B32A |
| html-safe-nonce | 6199be81b2afe7a4a6bc9e16eb82a42ff14512c42e6918c551b078dfbdc35169 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTRBOjE0N0JCNzoxQjdCQ0Q2OjI0RDJDQkI6Njk4MUIzMkEiLCJ2aXNpdG9yX2lkIjoiNDE5MzkyNTA3ODI4MDQxODA5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3966482f97cf62f295ba13f6069858f4327749664b3b51fc195ab9d584556ef1 |
| hovercard-subject-tag | issue:947981963 |
| 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/objectbox/objectbox-java/1000/issue_layout |
| twitter:image | https://opengraph.githubassets.com/91935aa89be74cb9fee84058ec4d7bc68452e0c1337fc519317ba9c771aad995/objectbox/objectbox-java/issues/1000 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/91935aa89be74cb9fee84058ec4d7bc68452e0c1337fc519317ba9c771aad995/objectbox/objectbox-java/issues/1000 |
| og:image:alt | Describe the bug When opening transactions in a rapid fashion on multiple threads DbMaxReadersExceededException is often thrown trying to start a transaction. I've created a test in a PR that will ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MrSlateZB |
| hostname | github.com |
| expected-hostname | github.com |
| None | e137814e266030874fd2c86863529d0622b13889eeda04148c57654b6ea84ad6 |
| turbo-cache-control | no-preview |
| go-import | github.com/objectbox/objectbox-java git https://github.com/objectbox/objectbox-java.git |
| octolytics-dimension-user_id | 22327943 |
| octolytics-dimension-user_login | objectbox |
| octolytics-dimension-repository_id | 79901405 |
| octolytics-dimension-repository_nwo | objectbox/objectbox-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 79901405 |
| octolytics-dimension-repository_network_root_nwo | objectbox/objectbox-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 | dd58d68a7813bbec9c91422c8c35f4af33832d70 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width