Skip to content

Tomandersen/transaction options - #3664

Merged
tom-andersen merged 29 commits into
masterfrom
tomandersen/transactionOptions
Apr 27, 2022
Merged

Tomandersen/transaction options#3664
tom-andersen merged 29 commits into
masterfrom
tomandersen/transactionOptions

Conversation

@tom-andersen

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Collaborator

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

google-oss-bot commented Apr 19, 2022

Copy link
Copy Markdown
Collaborator

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

google-oss-bot commented Apr 19, 2022

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Collaborator

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

@wu-hui wu-hui left a comment

Copy link
Copy Markdown
Contributor

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

wu-hui commented Apr 20, 2022

Copy link
Copy Markdown
Contributor

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

@tom-andersen tom-andersen left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed comments

@tom-andersen tom-andersen left a comment

Copy link
Copy Markdown
Contributor Author

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

@wu-hui wu-hui left a comment

Copy link
Copy Markdown
Contributor

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