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

fix: additional sample test for both transactionManager work together. #1848

Merged
merged 9 commits into from
May 22, 2023

Conversation

zhumin8
Copy link
Contributor

@zhumin8 zhumin8 commented May 15, 2023

This pr adds an integration test to spring-cloud-gcp-data-multi-sample for the scenario of both Datastore and Spanner Transaction manager working in the same app.
It is a followup on #1412 and will rebase the change is merged in.

bijukunjummen and others added 9 commits December 24, 2022 15:17
Conditional for Spanner is based on missing beans of type SpannerTransactionManager instead of PlatformTransactionManager, this way it always gets created if Spanner libs are pulled in
Conditional for Datastore is based on missing beans of type DatastoreTransactionManager instead of PlatformTransactionManager, this way it gets created if Datastore libs are pulled in
It is user responsibility to designate the transaction's right transaction manager:
```
@transactional(transactionManager = "spannerTransactionManager")
```

```
@transactional(transactionManager = "datastoreTransactionManager")
```
@sonarcloud
Copy link

sonarcloud bot commented May 20, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@zhumin8 zhumin8 marked this pull request as ready for review May 22, 2023 13:59
@zhumin8 zhumin8 merged commit 219adb3 into main May 22, 2023
@zhumin8 zhumin8 deleted the txmgr-add-test branch May 22, 2023 22:00
zhumin8 added a commit that referenced this pull request May 24, 2023
#1848)

This pr adds an integration test to `spring-cloud-gcp-data-multi-sample` for the scenario of both Datastore and Spanner Transaction manager working in the same app.
It is a followup on #1412
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.

4 participants