GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Spanner - Expose transaction protocol · Issue #1810 · googleapis/google-cloud-java

Spanner - Expose transaction protocol #1810

New issue
Copy link
New issue
Copy link
Closed
Closed
Spanner - Expose transaction protocol#1810
Copy link
Assignees
vkedia
Labels
api: spannerIssues related to the Spanner API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
Milestone
Spanner GA

Description

@saturnism
saturnism
opened on Mar 24, 2017
Issue body actions

Currently, transaction is wrapped around a single run block. Typically, there is a begin transaction & commit semantic where we can get a tx ID and tie operation to the tx ID. According to @vkedia, there is the wire protocol for this, that can be exposed. This could help significantly in tying better w/ JTA standards.

Currently, the community jdbc driver is trying to work around this by having a single runnable thread that listens/pulls from a queue of requests.

/cc @emmanuelbernard to see if this will be helpful & what the JTA needs are.

Activity

Next
  1. saturnism commented on Mar 24, 2017

    @saturnism
    saturnism
    on Mar 24, 2017
    Author
    More actions

    /cc @glaforge

  2. garrettjonesgoogle
    added
    api: spannerIssues related to the Spanner API.
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Mar 24, 2017
  3. saturnism commented on Mar 26, 2017

    @saturnism
    saturnism
    on Mar 26, 2017
    Author
    More actions

    /cc @olavloite

  4. emmanuelbernard commented on Mar 27, 2017

    @emmanuelbernard
    emmanuelbernard
    on Mar 27, 2017
    More actions

    Yes that would be very helpful to Hibernate as well.
    We would be able to tie the Spanner transaction to our wrapper and put all of Hibernate's operations in a single tx. At the moment we can only treat Spanner as a non transactional store most of the time.

  5. vkedia commented on Mar 27, 2017

    @vkedia
    vkedia
    on Mar 27, 2017
    More actions

    /cc @tomayles
    @emmanuelbernard This sounds reasonable. But even with this in place, without read-your-writes semantics and DML, can spanner be made to work with Hibernate?

  6. emmanuelbernard commented on Apr 3, 2017

    @emmanuelbernard
    emmanuelbernard
    on Apr 3, 2017
    More actions

    @vkedia we need DML for Hibernate ORM proper. But I'm working on a Hibernate OGM dialect to use the native Spanner APIs for DML ops.
    As for read your writes, I need to think deeper but the notion of persistence context protects you from a lot of read-your-write problems.

  7. archiecobbs commented on Apr 3, 2017

    @archiecobbs
    archiecobbs
    on Apr 3, 2017
    More actions

    FWIW, I'm using Spanner in a project that also needs the ability to manually open/commit/rollback transactions, and also has built-in read-your-writes support. See also issue #1627 for additional background and motivation.

  8. shinfan
    modified the milestone: Spanner GA on May 8, 2017
  9. saturnism commented on May 25, 2017

    @saturnism
    saturnism
    on May 25, 2017
    Author
    More actions

    we also opened #2063 to track adding support to JTA where applicable, and sounds like the original ask of #1627.

  10. garrettjonesgoogle
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on May 30, 2017
  11. garrettjonesgoogle
    assigned
    vkedia
    on Aug 11, 2017
  12. aandreakis-zz commented on Aug 19, 2017

    @aandreakis-zz
    aandreakis-zz
    on Aug 19, 2017
    More actions

    +1 for this change request

    We are integrating Spanner into our code base and it would be very convenient if we are able to start a Spanner read-write transaction and commit / rollback explicitly and without relying on the current callback approach.

  13. olavloite commented on Aug 19, 2017

    @olavloite
    olavloite
    on Aug 19, 2017
    Contributor
    More actions

    As mentioned earlier in this thread: This JDBC driver for Google Cloud Spanner supports 'normal' transactions and other standard JDBC functionality (including DDL- and DML-statements).
    This sample project shows a (simple) example how you could use it in combination with JPA/Hibernate: https://github.com/olavloite/spanner-jpa-example

  14. 6 remaining items

  15. vkedia commented on Apr 13, 2018

    @vkedia
    vkedia
    on Apr 13, 2018
    More actions

    Closed by #2776

  16. vkedia
    closed this as completedon Apr 13, 2018
  17. chingor13
    added 3 commits that reference this issue on Feb 20, 2026

    fix: update copyright year in Java license header replacement template (

    af99efe

    chore(main): release 2.38.0 (#2139)

    135d4e5

    docs: Migrate documentation from README to the offical doc site (#1810)

    e6f2b09
  18. chingor13
    added a commit that references this issue on Mar 12, 2026

    docs: Migrate documentation from README to the offical doc site (#1810)

    0336646
  19. suztomo
    added a commit that references this issue on Mar 23, 2026

    chore(main): release 2.24.1 (googleapis#1810)

    d17ca65
  20. meltsufin
    added 7 commits that reference this issue on Apr 29, 2026

    deps: update dependency com.google.cloud:google-cloud-core to v2.27.0 (…

    edd89f3

    chore(main): release 1.125.11 (#1813)

    9e5ceda

    chore(main): release 1.133.0 (#2206)

    a3b6539

    deps: update dependency com.google.cloud:google-cloud-core to v2.27.0 (…

    3c90c24

    chore(main): release 1.125.11 (#1813)

    a7522fe

    chore(main): release 1.133.0 (#2206)

    1180af9

    deps: update dependency com.google.cloud:sdk-platform-java-config to …

    3b134ce
  21. benjaminp
    added a commit that references this issue on Jul 13, 2026

    test: fix samples for reverse scans (googleapis#1810)

    5d55b8d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @vkedia
    vkedia

Labels

api: spannerIssues related to the Spanner API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    • Spanner GA

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.