René's URL Explorer Experiment


Title: Most queries raise non-fatal `ValueError: Transaction is already committed` · Issue #103 · googleapis/python-spanner-sqlalchemy · GitHub

Open Graph Title: Most queries raise non-fatal `ValueError: Transaction is already committed` · Issue #103 · googleapis/python-spanner-sqlalchemy

X Title: Most queries raise non-fatal `ValueError: Transaction is already committed` · Issue #103 · googleapis/python-spanner-sqlalchemy

Description: Expected Behavior Connection pool does not raise exceptions Actual Behavior Connection pool raises non-fatal exceptions for SELECT/INSERT transactions Steps to Reproduce the Problem from sqlalchemy import Column, Integer, MetaData, selec...

Open Graph Description: Expected Behavior Connection pool does not raise exceptions Actual Behavior Connection pool raises non-fatal exceptions for SELECT/INSERT transactions Steps to Reproduce the Problem from sqlalchemy...

X Description: Expected Behavior Connection pool does not raise exceptions Actual Behavior Connection pool raises non-fatal exceptions for SELECT/INSERT transactions Steps to Reproduce the Problem from sqlalchemy...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Most queries raise non-fatal `ValueError: Transaction is already committed`","articleBody":"## Expected Behavior\r\nConnection pool does not raise exceptions\r\n\r\n## Actual Behavior\r\nConnection pool raises non-fatal exceptions for SELECT/INSERT transactions\r\n\r\n\r\n## Steps to Reproduce the Problem\r\n```python\r\nfrom sqlalchemy import Column, Integer, MetaData, select, Text, Table, create_engine\r\n\r\nproject_id = 'foo'\r\ninstance_id = 'bar'\r\ndatabase = 'baz'\r\n\r\nspanner_uri = f'spanner:///projects/{project_id}/instances/{instance_id}/databases/{database}'\r\n\r\n# Create a table with one `Text`-type column\r\nengine = create_engine(spanner_uri)\r\nmetadata = MetaData(bind=engine)\r\nt = Table(\"TestTable\", metadata, Column(\"test_column\", Text, nullable=False))\r\nmetadata.create_all(engine)\r\n\r\nwith engine.begin() as conn:\r\n    results = conn.execute(select([t.c.test_column])).fetchall()\r\n\r\nprint(results)\r\n```\r\n```shell\r\naderk@aderk ~/q/pyle (u/aderk/labdb-spanner)\u003e python txn_bug.py \r\nException during reset or similar\r\nTraceback (most recent call last):\r\n  File \"/usr/local/google/home/aderk/.virtualenvs/pyle/lib/python3.8/site-packages/sqlalchemy/pool/base.py\", line 697, in _finalize_fairy\r\n    fairy._reset(pool)\r\n  File \"/usr/local/google/home/aderk/.virtualenvs/pyle/lib/python3.8/site-packages/sqlalchemy/pool/base.py\", line 893, in _reset\r\n    pool._dialect.do_rollback(self)\r\n  File \"/usr/local/google/home/aderk/.virtualenvs/pyle/lib/python3.8/site-packages/google/cloud/sqlalchemy_spanner/sqlalchemy_spanner.py\", line 773, in do_rollback\r\n    dbapi_connection.rollback()\r\n  File \"/usr/local/google/home/aderk/.virtualenvs/pyle/lib/python3.8/site-packages/google/cloud/spanner_dbapi/connection.py\", line 267, in rollback\r\n    self._transaction.rollback()\r\n  File \"/usr/local/google/home/aderk/.virtualenvs/pyle/lib/python3.8/site-packages/google/cloud/spanner_v1/transaction.py\", line 113, in rollback\r\n    self._check_state()\r\n  File \"/usr/local/google/home/aderk/.virtualenvs/pyle/lib/python3.8/site-packages/google/cloud/spanner_v1/transaction.py\", line 68, in _check_state\r\n    raise ValueError(\"Transaction is already committed\")\r\nValueError: Transaction is already committed\r\n[]\r\n```\r\n\r\n## Specifications\r\n\r\n- Version: Python 3.8.8 (default, Apr  1 2021, 17:00:06) \r\n1c9be70f901ca016c357ced66fe258f01b694787\r\n- Platform: Linux","author":{"url":"https://github.com/aderk","@type":"Person","name":"aderk"},"datePublished":"2021-08-20T21:05:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/103/python-spanner-sqlalchemy/issues/103"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:dbffecc9-6421-f719-a2b3-e62f54a6928e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id882A:50BAF:583D0E:74E69B:6A518AA2
html-safe-nonced3f0009867ae463854bb8d5722a7cd91508d96b500cc38925e02c98572ec7bd7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODJBOjUwQkFGOjU4M0QwRTo3NEU2OUI6NkE1MThBQTIiLCJ2aXNpdG9yX2lkIjoiODYxNjg5MzQ3MjE0MDUyODI5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf6080f5a7c00f035f9697ca0906efd95e738bf14fa4f9b8f8e04f0869eceba3f
hovercard-subject-tagissue:975920304
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/103/issue_layout
twitter:imagehttps://opengraph.githubassets.com/041bf7885f928becdd32e761feb1d01742c443ca20bdc9255257c9dba841102c/googleapis/python-spanner-sqlalchemy/issues/103
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/041bf7885f928becdd32e761feb1d01742c443ca20bdc9255257c9dba841102c/googleapis/python-spanner-sqlalchemy/issues/103
og:image:altExpected Behavior Connection pool does not raise exceptions Actual Behavior Connection pool raises non-fatal exceptions for SELECT/INSERT transactions Steps to Reproduce the Problem from sqlalchemy...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameaderk
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
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
releasecb77a7b8b06cd86c243be33fd8e7922d70a9d243
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/googleapis/python-spanner-sqlalchemy/issues/103#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-spanner-sqlalchemy%2Fissues%2F103
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-spanner-sqlalchemy%2Fissues%2F103
Sign up https://github.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://github.com/googleapis/python-spanner-sqlalchemy/issues/103
Reloadhttps://github.com/googleapis/python-spanner-sqlalchemy/issues/103
Reloadhttps://github.com/googleapis/python-spanner-sqlalchemy/issues/103
Please reload this pagehttps://github.com/googleapis/python-spanner-sqlalchemy/issues/103
googleapis https://github.com/googleapis
python-spanner-sqlalchemyhttps://github.com/googleapis/python-spanner-sqlalchemy
Notifications https://github.com/login?return_to=%2Fgoogleapis%2Fpython-spanner-sqlalchemy
Fork 35 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-spanner-sqlalchemy
Star 53 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-spanner-sqlalchemy
Code https://github.com/googleapis/python-spanner-sqlalchemy
Issues 1 https://github.com/googleapis/python-spanner-sqlalchemy/issues
Pull requests 0 https://github.com/googleapis/python-spanner-sqlalchemy/pulls
Actions https://github.com/googleapis/python-spanner-sqlalchemy/actions
Projects https://github.com/googleapis/python-spanner-sqlalchemy/projects
Security and quality 0 https://github.com/googleapis/python-spanner-sqlalchemy/security
Insights https://github.com/googleapis/python-spanner-sqlalchemy/pulse
Code https://github.com/googleapis/python-spanner-sqlalchemy
Issues https://github.com/googleapis/python-spanner-sqlalchemy/issues
Pull requests https://github.com/googleapis/python-spanner-sqlalchemy/pulls
Actions https://github.com/googleapis/python-spanner-sqlalchemy/actions
Projects https://github.com/googleapis/python-spanner-sqlalchemy/projects
Security and quality https://github.com/googleapis/python-spanner-sqlalchemy/security
Insights https://github.com/googleapis/python-spanner-sqlalchemy/pulse
#106https://github.com/googleapis/python-spanner-sqlalchemy/pull/106
Most queries raise non-fatal ValueError: Transaction is already committedhttps://github.com/googleapis/python-spanner-sqlalchemy/issues/103#top
#106https://github.com/googleapis/python-spanner-sqlalchemy/pull/106
https://github.com/IlyaFaer
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
https://github.com/aderk
aderkhttps://github.com/aderk
on Aug 20, 2021https://github.com/googleapis/python-spanner-sqlalchemy/issues/103#issue-975920304
1c9be70https://github.com/googleapis/python-spanner-sqlalchemy/commit/1c9be70f901ca016c357ced66fe258f01b694787
IlyaFaerhttps://github.com/IlyaFaer
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
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.