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

Tomandersen/transaction options #3664

Merged
merged 29 commits into from
Apr 27, 2022
Merged

Conversation

tom-andersen
Copy link
Contributor

@tom-andersen tom-andersen commented Apr 19, 2022

Add TransactionOptions to allow control of maximum attempts to commit before transaction fails.

Fix: #2877

eldhosembabu and others added 23 commits February 23, 2022 16:21
@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-firestore:
error: Added method com.google.firebase.firestore.FirebaseFirestore.runTransaction(com.google.firebase.firestore.TransactionOptions,com.google.firebase.firestore.Transaction.Function) [AddedMethod]
error: Added class com.google.firebase.firestore.TransactionOptions [AddedClass]

Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 19, 2022

Coverage Report 1

Affected Products

  • firebase-firestore

    Overall coverage changed from 46.25% (b600e83) to 46.04% (40b73c5) by -0.21%.

    FilenameBase (b600e83)Merge (40b73c5)Diff
    AsyncQueue.java78.61%78.11%-0.50%
    Datastore.java32.14%29.76%-2.38%
    FirebaseFirestore.java37.08%36.87%-0.21%
    FirestoreChannel.java18.10%16.38%-1.72%
    FirestoreClient.java38.52%30.88%-7.64%
    GrpcCallProvider.java69.41%62.35%-7.06%
    IndexBackfiller.java92.19%76.56%-15.63%
    LruGarbageCollector.java93.46%84.11%-9.35%
    SetMutation.java94.44%97.22%+2.78%

Test Logs

Notes

  • Commit (40b73c5) is created by Prow via merging PR base commit (b600e83) and head commit (1d62d46).
  • Run gradle <product>:checkCoverage to produce HTML coverage reports locally. After gradle commands finished, report files can be found under <product-build-dir>/reports/jacoco/.

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/qLDYYy7VUN.html

…into tomandersen/transactionOptions

# Conflicts:
#	firebase-firestore/src/main/java/com/google/firebase/firestore/TransactionOptions.java
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 19, 2022

Size Report 1

Affected Products

  • firebase-firestore

    TypeBase (b600e83)Merge (40b73c5)Diff
    aar1.25 MB1.26 MB+2.19 kB (+0.2%)
    apk (release)3.38 MB3.38 MB+852 B (+0.0%)

Test Logs

Notes

  • Commit (40b73c5) is created by Prow via merging PR base commit (b600e83) and head commit (1d62d46).

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/dTHDZirEe8.html

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-firestore:
error: Added method com.google.firebase.firestore.FirebaseFirestore.runTransaction(com.google.firebase.firestore.TransactionOptions,com.google.firebase.firestore.Transaction.Function) [AddedMethod]
error: Added class com.google.firebase.firestore.TransactionOptions [AddedClass]

Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly.

@tom-andersen tom-andersen marked this pull request as ready for review April 19, 2022 23:46
@wu-hui wu-hui requested a review from markarndt April 20, 2022 00:45
Copy link
Contributor

@wu-hui wu-hui left a comment

Choose a reason for hiding this comment

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

Looking good, some nits on comments.

@wu-hui wu-hui assigned tom-andersen and unassigned wu-hui Apr 20, 2022
@wu-hui
Copy link
Contributor

wu-hui commented Apr 20, 2022

You should also add an entry to CHANGELOG.md.

See here: https://osscs.corp.google.com/firebase-sdk/firebase-android-sdk/+/master:firebase-firestore/CHANGELOG.md;l=5

Copy link
Contributor Author

@tom-andersen tom-andersen left a comment

Choose a reason for hiding this comment

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

Addressed comments

Copy link
Contributor Author

@tom-andersen tom-andersen left a comment

Choose a reason for hiding this comment

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

Fixed changes

@tom-andersen tom-andersen requested a review from wu-hui April 21, 2022 22:14
Copy link
Contributor

@wu-hui wu-hui left a comment

Choose a reason for hiding this comment

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

LGTM, but please merge it after you get tech writer approval.

@wu-hui wu-hui removed their assignment Apr 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Very long (10 - 30 seconds) transaction failure timeout while offline
5 participants