Commit 8e1634b
authored
feat: Reworked MutateRows to use the data client (#1290)
**Changes Made:**
- Rerouted MutateRows to use the data client's `Table.bulk_mutate_rows`
function.
- Reworked error handling in `Table.mutate_rows`. Since we must return a
list of `Status` objects, we process the list of errors obtained from
the `_MutateRowsOperation` back into a corresponding list of error
statuses.
- Reworked retries in `Table.mutate_rows` as follows:
- `retry.deadline` -> `operation_timeout`
- `timeout`/`mutation_timeout` -> `attempt_timeout`
- A null retry deadline now defaults to the table default mutate rows
operation timeout instead of being defined as no timeout. The docstring
has been updated to reflect that. A retry deadline of 0.0 will still be
a no-retry option, and is implemented by setting the list of retriable
errors to the empty list, and the operation timeout to the default
mutate rows operation timeout.
- A `timestamp` of `None` in `set_cell`, which is the default, will now
generate a client-side timestamp representing the current time, rather
than defaulting to using the server-side timestamp. The docstrings for
this have been updated to reflect this.1 parent 6153a5c commit 8e1634b
File tree
6 files changed
+301
-922
lines changed- google/cloud/bigtable
- data
- tests
- system/v2_client
- unit/v2_client
6 files changed
+301
-922
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
162 | | - | |
163 | | - | |
164 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
| |||
351 | 353 | | |
352 | 354 | | |
353 | 355 | | |
354 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
355 | 359 | | |
356 | 360 | | |
357 | 361 | | |
| |||
651 | 655 | | |
652 | 656 | | |
653 | 657 | | |
654 | | - | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
655 | 661 | | |
656 | 662 | | |
657 | 663 | | |
| |||
0 commit comments