René's URL Explorer Experiment


Title: Transaction aborted while reading table · Issue #301 · googleapis/python-spanner-sqlalchemy · GitHub

Open Graph Title: Transaction aborted while reading table · Issue #301 · googleapis/python-spanner-sqlalchemy

X Title: Transaction aborted while reading table · Issue #301 · googleapis/python-spanner-sqlalchemy

Description: Hello, I am trying to read data from a spanner table that currently has 134.964 rows and 288 columns. I have been using the example posted in the Github under "Read" and modying the query to read less rows between each cycle. The first i...

Open Graph Description: Hello, I am trying to read data from a spanner table that currently has 134.964 rows and 288 columns. I have been using the example posted in the Github under "Read" and modying the query to read l...

X Description: Hello, I am trying to read data from a spanner table that currently has 134.964 rows and 288 columns. I have been using the example posted in the Github under "Read" and modying the query...

Opengraph URL: https://github.com/googleapis/python-spanner-sqlalchemy/issues/301

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Transaction aborted while reading table","articleBody":"\r\nHello,\r\n\r\n\r\nI am trying to read data from a spanner table that currently has 134.964 rows and 288 columns.\r\n\r\nI have been using the example posted in the Github under \"Read\" and modying the query to read less rows between each cycle.\r\n\r\nThe first issue is that it takes a good couple minutes (Probably 3+ to execute said transactions) and the second is that they keep failing.\r\n\r\nHere is the error:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\api_core\\grpc_helpers.py\", line 72, in error_remapped_callable\r\n    return callable_(*args, **kwargs)\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\grpc\\_channel.py\", line 946, in __call__\r\n    return _end_unary_response_blocking(state, call, False, None)\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\grpc\\_channel.py\", line 849, in _end_unary_response_blocking\r\n    raise _InactiveRpcError(state)\r\ngrpc._channel._InactiveRpcError: \u003c_InactiveRpcError of RPC that terminated with:\r\n\tstatus = StatusCode.ABORTED\r\n\tdetails = \"Transaction was aborted.\"\r\n\tdebug_error_string = \"{\"created\":\"@1673589122.237000000\",\"description\":\"Error received from peer ipv4:142.250.219.234:443\",\"file\":\"src/core/lib/surface/call.cc\",\"file_line\":904,\"grpc_message\":\"Transaction was aborted.\",\"grpc_status\":10}\"\r\n\u003e\r\nThe above exception was the direct cause of the following exception:\r\nTraceback (most recent call last):\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\cloud\\spanner_dbapi\\connection.py\", line 391, in commit\r\n    self._transaction.commit()\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\cloud\\spanner_v1\\transaction.py\", line 199, in commit\r\n    response = api.commit(\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\cloud\\spanner_v1\\services\\spanner\\client.py\", line 1789, in commit\r\n    response = rpc(\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\api_core\\gapic_v1\\method.py\", line 113, in __call__\r\n    return wrapped_func(*args, **kwargs)\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\api_core\\retry.py\", line 349, in retry_wrapped_func\r\n    return retry_target(\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\api_core\\retry.py\", line 191, in retry_target\r\n    return target()\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\api_core\\grpc_helpers.py\", line 74, in error_remapped_callable\r\n    raise exceptions.from_grpc_error(exc) from exc\r\ngoogle.api_core.exceptions.Aborted: 409 Transaction was aborted. [retry_delay {\r\n  nanos: 10853187\r\n}\r\n]\r\nDuring handling of the above exception, another exception occurred:\r\nTraceback (most recent call last):\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\sqlalchemy\\engine\\base.py\", line 1089, in _commit_impl\r\n    self.engine.dialect.do_commit(self.connection)\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\cloud\\sqlalchemy_spanner\\sqlalchemy_spanner.py\", line 990, in do_commit\r\n    dbapi_connection.commit()\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\cloud\\spanner_dbapi\\connection.py\", line 396, in commit\r\n    self.retry_transaction()\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\cloud\\spanner_dbapi\\connection.py\", line 277, in retry_transaction\r\n    self._rerun_previous_statements()\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\cloud\\spanner_dbapi\\connection.py\", line 324, in _rerun_previous_statements\r\n    _compare_checksums(statement.checksum, retried_checksum)\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\cloud\\spanner_dbapi\\checksum.py\", line 78, in _compare_checksums\r\n    raise RetryAborted(\r\ngoogle.cloud.spanner_dbapi.exceptions.RetryAborted: The transaction was aborted and could not be retried due to a concurrent modification.\r\nThe above exception was the direct cause of the following exception:\r\nTraceback (most recent call last):\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\IPython\\core\\interactiveshell.py\", line 3251, in run_code\r\n    exec(code_obj, self.user_global_ns, self.user_ns)\r\n  File \"\u003cipython-input-220-dacab1707a8a\u003e\", line 3, in \u003cmodule\u003e\r\n    loaded_data = connection2.execute(table.select().limit(100000).offset(data_offset)).fetchall()\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\sqlalchemy\\engine\\base.py\", line 3100, in __exit__\r\n    self.transaction.__exit__(type_, value, traceback)\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\sqlalchemy\\engine\\util.py\", line 237, in __exit__\r\n    self.rollback()\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\sqlalchemy\\util\\langhelpers.py\", line 70, in __exit__\r\n    compat.raise_(\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\sqlalchemy\\util\\compat.py\", line 211, in raise_\r\n    raise exception\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\sqlalchemy\\engine\\util.py\", line 233, in __exit__\r\n    self.commit()\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\sqlalchemy\\engine\\base.py\", line 2459, in commit\r\n    self._do_commit()\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\sqlalchemy\\engine\\base.py\", line 2649, in _do_commit\r\n    self._connection_commit_impl()\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\sqlalchemy\\engine\\base.py\", line 2620, in _connection_commit_impl\r\n    self.connection._commit_impl()\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\sqlalchemy\\engine\\base.py\", line 1091, in _commit_impl\r\n    self._handle_dbapi_exception(e, None, None, None, None)\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\sqlalchemy\\engine\\base.py\", line 2124, in _handle_dbapi_exception\r\n    util.raise_(\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\sqlalchemy\\util\\compat.py\", line 211, in raise_\r\n    raise exception\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\sqlalchemy\\engine\\base.py\", line 1089, in _commit_impl\r\n    self.engine.dialect.do_commit(self.connection)\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\cloud\\sqlalchemy_spanner\\sqlalchemy_spanner.py\", line 990, in do_commit\r\n    dbapi_connection.commit()\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\cloud\\spanner_dbapi\\connection.py\", line 396, in commit\r\n    self.retry_transaction()\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\cloud\\spanner_dbapi\\connection.py\", line 277, in retry_transaction\r\n    self._rerun_previous_statements()\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\cloud\\spanner_dbapi\\connection.py\", line 324, in _rerun_previous_statements\r\n    _compare_checksums(statement.checksum, retried_checksum)\r\n  File \"D:\\bupryhr_dev\\venv\\lib\\site-packages\\google\\cloud\\spanner_dbapi\\checksum.py\", line 78, in _compare_checksums\r\n    raise RetryAborted(\r\nsqlalchemy.exc.OperationalError: (google.cloud.spanner_dbapi.exceptions.RetryAborted) The transaction was aborted and could not be retried due to a concurrent modification.\r\n(Background on this error at: https://sqlalche.me/e/14/e3q8)\r\n```","author":{"url":"https://github.com/Joselguti","@type":"Person","name":"Joselguti"},"datePublished":"2023-01-13T06:02:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/301/python-spanner-sqlalchemy/issues/301"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f0733ede-749f-1c01-c718-b897d28253e7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBAB2:2D7E24:FB1EF:16467C:6978801F
html-safe-nonce2399a85e325848630fde090ddf5446fc9b6fb85b008f8176bd783ad3da556506
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUIyOjJEN0UyNDpGQjFFRjoxNjQ2N0M6Njk3ODgwMUYiLCJ2aXNpdG9yX2lkIjoiNzQ3MjU2NDQxODk2MjI5Mjc2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf1564fecf8aace2927fc2730192b22f4073a113d789fcfb201990c37937bb6a4
hovercard-subject-tagissue:1531752676
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-spanner-sqlalchemy/301/issue_layout
twitter:imagehttps://opengraph.githubassets.com/063c25f5833af970534a4289c5898df8120065073653057e523c4a790a05e8e6/googleapis/python-spanner-sqlalchemy/issues/301
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/063c25f5833af970534a4289c5898df8120065073653057e523c4a790a05e8e6/googleapis/python-spanner-sqlalchemy/issues/301
og:image:altHello, I am trying to read data from a spanner table that currently has 134.964 rows and 288 columns. I have been using the example posted in the Github under "Read" and modying the query to read l...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJoselguti
hostnamegithub.com
expected-hostnamegithub.com
None2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50
turbo-cache-controlno-preview
go-importgithub.com/googleapis/python-spanner-sqlalchemy git https://github.com/googleapis/python-spanner-sqlalchemy.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id335511641
octolytics-dimension-repository_nwogoogleapis/python-spanner-sqlalchemy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id335511641
octolytics-dimension-repository_network_root_nwogoogleapis/python-spanner-sqlalchemy
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release520b65a872113b919c1bbdb03834a50af15859fd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/issues/301#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-spanner-sqlalchemy%2Fissues%2F301
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-spanner-sqlalchemy%2Fissues%2F301
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fpython-spanner-sqlalchemy
Reloadhttps://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/issues/301
Reloadhttps://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/issues/301
Reloadhttps://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/issues/301
googleapis https://patch-diff.githubusercontent.com/googleapis
python-spanner-sqlalchemyhttps://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fgoogleapis%2Fpython-spanner-sqlalchemy
Fork 33 https://patch-diff.githubusercontent.com/login?return_to=%2Fgoogleapis%2Fpython-spanner-sqlalchemy
Star 52 https://patch-diff.githubusercontent.com/login?return_to=%2Fgoogleapis%2Fpython-spanner-sqlalchemy
Code https://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy
Issues 14 https://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/issues
Pull requests 17 https://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/pulls
Actions https://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/actions
Projects 0 https://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/projects
Security 0 https://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/security
Insights https://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/pulse
Code https://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy
Issues https://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/issues
Pull requests https://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/pulls
Actions https://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/actions
Projects https://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/projects
Security https://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/security
Insights https://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/googleapis/python-spanner-sqlalchemy/issues/301
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/googleapis/python-spanner-sqlalchemy/issues/301
Transaction aborted while reading tablehttps://patch-diff.githubusercontent.com/googleapis/python-spanner-sqlalchemy/issues/301#top
https://patch-diff.githubusercontent.com/ankiaga
api: spannerIssues related to the googleapis/python-spanner-sqlalchemy API.https://github.com/googleapis/python-spanner-sqlalchemy/issues?q=state%3Aopen%20label%3A%22api%3A%20spanner%22
priority: p3Desirable enhancement or fix. May not be included in next release.https://github.com/googleapis/python-spanner-sqlalchemy/issues?q=state%3Aopen%20label%3A%22priority%3A%20p3%22
type: questionRequest for information or clarification. Not an issue.https://github.com/googleapis/python-spanner-sqlalchemy/issues?q=state%3Aopen%20label%3A%22type%3A%20question%22
https://github.com/Joselguti
https://github.com/Joselguti
Joselgutihttps://github.com/Joselguti
on Jan 13, 2023https://github.com/googleapis/python-spanner-sqlalchemy/issues/301#issue-1531752676
ankiagahttps://patch-diff.githubusercontent.com/ankiaga
api: spannerIssues related to the googleapis/python-spanner-sqlalchemy API.https://github.com/googleapis/python-spanner-sqlalchemy/issues?q=state%3Aopen%20label%3A%22api%3A%20spanner%22
priority: p3Desirable enhancement or fix. May not be included in next release.https://github.com/googleapis/python-spanner-sqlalchemy/issues?q=state%3Aopen%20label%3A%22priority%3A%20p3%22
type: questionRequest for information or clarification. Not an issue.https://github.com/googleapis/python-spanner-sqlalchemy/issues?q=state%3Aopen%20label%3A%22type%3A%20question%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.