Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix references about other integrations in spanner doc #3413

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

progvb
Copy link
Contributor

@progvb progvb commented Dec 10, 2024

The original text says:

Other Google Cloud database-related integrations like Spanner and Firestore can introduce PlatformTransactionManager

However, the docs are about Spanner integration.

The original text says:

> Other Google Cloud database-related integrations like Spanner and Firestore can introduce `PlatformTransactionManager` …

However, the docs _are_ about Spanner integration.
@progvb progvb requested a review from a team as a code owner December 10, 2024 07:11
Copy link

google-cla bot commented Dec 10, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link
Contributor

@zhumin8 zhumin8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for noticing this!

@@ -960,7 +960,7 @@ This feature requires a bean of `SpannerTransactionManager`, which is provided w
If a method annotated with `@Transactional` calls another method also annotated, then both methods will work within the same transaction.
`performReadOnlyTransaction` and `performReadWriteTransaction` cannot be used in `@Transactional` annotated methods because Cloud Spanner does not support transactions within transactions.

Other Google Cloud database-related integrations like Spanner and Firestore can introduce `PlatformTransactionManager` beans, and can interfere with Datastore Transaction Manager. To disambiguate, explicitly specify the name of the transaction manager bean for such `@Transactional` methods. Example:
Other Google Cloud database-related integrations like Firestore can introduce `PlatformTransactionManager` beans, and can interfere with Spanner Transaction Manager. To disambiguate, explicitly specify the name of the transaction manager bean for such `@Transactional` methods. Example:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Other Google Cloud database-related integrations like Firestore can introduce `PlatformTransactionManager` beans, and can interfere with Spanner Transaction Manager. To disambiguate, explicitly specify the name of the transaction manager bean for such `@Transactional` methods. Example:
Other Google Cloud database-related integrations like Datastore and Firestore can introduce `PlatformTransactionManager` beans, and can interfere with Spanner Transaction Manager. To disambiguate, explicitly specify the name of the transaction manager bean for such `@Transactional` methods. Example:

@zhumin8 zhumin8 changed the title docs: fix references about other integrations docs: fix references about other integrations in spanner doc Jan 15, 2025
@zhumin8 zhumin8 merged commit 1e99a52 into GoogleCloudPlatform:main Jan 15, 2025
10 of 11 checks passed
zhumin8 added a commit that referenced this pull request Jan 15, 2025
* docs: fix references about other integrations (#1)

The original text says:

> Other Google Cloud database-related integrations like Spanner and Firestore can introduce `PlatformTransactionManager` …

However, the docs _are_ about Spanner integration.

* add Datastore to text as other Google Cloud database-related integrations.

---------

Co-authored-by: Min Zhu <zhumin@google.com>
zhumin8 added a commit that referenced this pull request Jan 15, 2025
…3472)

* docs: fix references about other integrations (#1)

The original text says:

> Other Google Cloud database-related integrations like Spanner and Firestore can introduce `PlatformTransactionManager` …

However, the docs _are_ about Spanner integration.

* add Datastore to text as other Google Cloud database-related integrations.

---------

Co-authored-by: Viktors Garkavijs <45557691+progvb@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants