Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

fix: disable retry-request, add exponential backoff in mutateRows and readRows#1060

Merged
mutianf merged 18 commits intogoogleapis:mainfrom
mutianf:mutate
Mar 31, 2022
Merged

fix: disable retry-request, add exponential backoff in mutateRows and readRows#1060
mutianf merged 18 commits intogoogleapis:mainfrom
mutianf:mutate

Conversation

@mutianf
Copy link
Copy Markdown
Contributor

@mutianf mutianf commented Mar 25, 2022

This pr has the following changes:

  • Add exponential retry backoff in readRows and mutateRows in table.ts. For readRows, retry delay and retry attempt count will reset whenever a new row is read (this behavior is consistent with the java client).
  • Removed decorateStatus. MutateRows PartialFailureErrors will return grpc status code.
  • Add RPC level retries for mutatesRows.
  • If there's an RPC level failure, add the RPC status code to mutateRows PartialFailureError.
  • Do not retry ABORT errors for mutate rows.
  • Ignore retry-request settings to avoid request being retried in multiple places.

@mutianf mutianf requested review from a team March 25, 2022 22:11
@product-auto-label product-auto-label Bot added the api: bigtable Issues related to the googleapis/nodejs-bigtable API. label Mar 25, 2022
Comment thread src/table.ts Outdated
Comment thread src/table.ts Outdated
Comment thread src/table.ts Outdated
@mutianf mutianf changed the title fix: add rpc level retries for mutate fix: add rpc level retries for mutate and enable exponential backoff Mar 29, 2022
Comment thread src/table.ts Outdated
Comment thread src/table.ts Outdated
Comment thread src/table.ts Outdated
Comment thread src/table.ts Outdated
Comment thread src/table.ts Outdated
Comment thread src/table.ts
@mutianf mutianf added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 30, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 30, 2022
Comment thread src/table.ts Outdated
Comment thread src/table.ts Outdated
Comment thread src/table.ts Outdated
Comment thread src/table.ts Outdated
Comment thread src/table.ts Outdated
@mutianf mutianf changed the title fix: add rpc level retries for mutate and enable exponential backoff fix: disable retry-request, add exponential backoff in mutateRows and readRows Mar 31, 2022
Comment thread src/table.ts
Comment thread src/index.ts Outdated
Copy link
Copy Markdown
Contributor

@igorbernstein2 igorbernstein2 left a comment

Choose a reason for hiding this comment

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

lgtm!

@mutianf mutianf added the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 31, 2022
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 31, 2022
Copy link
Copy Markdown
Contributor

@igorbernstein2 igorbernstein2 left a comment

Choose a reason for hiding this comment

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

lgtm!

@mutianf mutianf merged commit 3718011 into googleapis:main Mar 31, 2022
@mutianf mutianf deleted the mutate branch March 31, 2022 21:37
gcf-merge-on-green Bot pushed a commit that referenced this pull request Apr 6, 2022
🤖 I have created a release *beep* *boop*
---


## [3.10.0](v3.9.4...v3.10.0) (2022-04-06)


### Features

* Add ListHotTablets API method and protobufs ([#1057](#1057)) ([2b175ac](2b175ac))
* AuditConfig for IAM v1 ([#1061](#1061)) ([d1b5f1a](d1b5f1a))
* enable channel pooling ([#1065](#1065)) ([6c3c397](6c3c397))


### Bug Fixes

* disable retry-request, add exponential backoff in mutateRows and readRows ([#1060](#1060)) ([3718011](3718011))
* retry rst_stream errors ([#1059](#1059)) ([90de80f](90de80f))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
GautamSharda pushed a commit to googleapis/google-cloud-node that referenced this pull request Mar 23, 2026
🤖 I have created a release *beep* *boop*
---


## [3.10.0](googleapis/nodejs-bigtable@v3.9.4...v3.10.0) (2022-04-06)


### Features

* Add ListHotTablets API method and protobufs ([#1057](googleapis/nodejs-bigtable#1057)) ([2b175ac](googleapis/nodejs-bigtable@2b175ac))
* AuditConfig for IAM v1 ([#1061](googleapis/nodejs-bigtable#1061)) ([d1b5f1a](googleapis/nodejs-bigtable@d1b5f1a))
* enable channel pooling ([#1065](googleapis/nodejs-bigtable#1065)) ([6c3c397](googleapis/nodejs-bigtable@6c3c397))


### Bug Fixes

* disable retry-request, add exponential backoff in mutateRows and readRows ([#1060](googleapis/nodejs-bigtable#1060)) ([3718011](googleapis/nodejs-bigtable@3718011))
* retry rst_stream errors ([#1059](googleapis/nodejs-bigtable#1059)) ([90de80f](googleapis/nodejs-bigtable@90de80f))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
GautamSharda pushed a commit to googleapis/google-cloud-node that referenced this pull request Mar 25, 2026
🤖 I have created a release *beep* *boop*
---


## [3.10.0](googleapis/nodejs-bigtable@v3.9.4...v3.10.0) (2022-04-06)


### Features

* Add ListHotTablets API method and protobufs ([#1057](googleapis/nodejs-bigtable#1057)) ([2b175ac](googleapis/nodejs-bigtable@2b175ac))
* AuditConfig for IAM v1 ([#1061](googleapis/nodejs-bigtable#1061)) ([d1b5f1a](googleapis/nodejs-bigtable@d1b5f1a))
* enable channel pooling ([#1065](googleapis/nodejs-bigtable#1065)) ([6c3c397](googleapis/nodejs-bigtable@6c3c397))


### Bug Fixes

* disable retry-request, add exponential backoff in mutateRows and readRows ([#1060](googleapis/nodejs-bigtable#1060)) ([3718011](googleapis/nodejs-bigtable@3718011))
* retry rst_stream errors ([#1059](googleapis/nodejs-bigtable#1059)) ([90de80f](googleapis/nodejs-bigtable@90de80f))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigtable Issues related to the googleapis/nodejs-bigtable API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants