-
Notifications
You must be signed in to change notification settings - Fork 955
fix(firestore): fix empty message reject inside transaction body #9177
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: b1a4873 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1Affected Products
Test Logs |
Changeset File Check ✅
|
'@firebase/firestore': major | ||
--- | ||
|
||
Fixed a bug where a rejected promise with an empty message in a transaction would cause a timeout. (https://github.com/firebase/firebase-js-sdk/issues/9147) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you can remove this link to the issue, but you need to update your PR description to use this exact syntax:
Fixes: #9147
Then the change log generator will be able to parse this issue number out of the PR description and generate the link for you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, this would be a "patch", not a "major" bump, right? See line 2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also remove the http link and add the line Fixes: #9147
to the PR description. Then the release notes will be automatically populated with the link to the issue. For an example of this, see #9151
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise, LGTM
@@ -113,7 +113,7 @@ export class TransactionRunner<T> { | |||
} | |||
|
|||
private isRetryableTransactionError(error: Error): boolean { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can make error
an optional param to communicate the behavior we have observed. This also supports the change you made below for future readers.
private isRetryableTransactionError(error?: Error): boolean {...
Fixes: #9147