Implementing Row.commit() in Bigtable.#1471
Conversation
gcloud/bigtable/row.py
Outdated
| def clear_mutations(self): | ||
| """Removes all currently accumulated mutations on the current row.""" | ||
| if self._filter is None: | ||
| self._pb_mutations[:] = [] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
FYI @tseaver I am sending another commit to allow a different number of module lines for our test |
gcloud/bigtable/test_row.py
Outdated
| expected_result = predicate_matched | ||
|
|
||
| # Perform the method and check the result. | ||
| row.set_cell(column_family_id, column, value, state=True) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
The pylint change seems OK: maybe disabling |
|
I disagree. Exceeding our pre-set limit is always a good signal that we should at least be notified about (even if we choose to ignore it). |
|
@tseaver PTAL, addressed the previous 2 comments |
|
LGTM pending Travis. |
|
Thanks. Just a heads up: I'm going to squash into a single commit before merging but will not change the content. |
|
SGTM |
Also - Adding pylint config to allow more lines in test modules. - Making small docstring change to HappyBase connection
321435e to
64b8ef0
Compare
Implementing Row.commit() in Bigtable.
* fix: drop pkg_resources * fix typo
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
* samples: Add samples for async download files #1470 * Add argument description for `async_download_blobs` function. Co-authored-by: cojenco <cathyo@google.com> * Addressed comments from cojenco@ * change download_as_string to bytes * Don't print blob contents after downloading * remove Google Inc , add Google LLC * pass list of file_names as one of the params. * fix lint issues * fix whitespace lints * remove unused variable i --------- Co-authored-by: cojenco <cathyo@google.com>
***Handle errors during stream restart in snapshot*** **Root Cause** When `_restart_on_unavailable` caught a `ServiceUnavailable` or resumable `InternalServerError`, it attempted to re-initialize the iterator immediately within the `except` block. If this re-initialization failed (e.g. due to a persistent transient error), the exception would propagate unhandled, breaking the retry loop. **Fix** This change modifies the logic to reset the iterator to `None` and `continue` the loop, forcing the re-initialization to occur inside the `try` block. This ensures that subsequent errors during restart are properly caught and retried. **Testing** Added unit tests to cover this specific behavior
PR created by the Librarian CLI to initialize a release. Merging this PR will auto trigger a release. Librarian Version: v1.0.0 Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:b8058df4c45e9a6e07f6b4d65b458d0d059241dd34c814f151c8bf6b89211209 <details><summary>google-cloud-spanner: 3.62.0</summary> ## [3.62.0](googleapis/python-spanner@v3.61.0...v3.62.0) (2026-01-14) ### Features * add uuid support (#1310) ([3b1792aa](googleapis/python-spanner@3b1792aa)) ### Bug Fixes * transaction_tag should be set on BeginTransactionRequest (#1463) ([3d3cea0b](googleapis/python-spanner@3d3cea0b)) * resolve pre-release dependency failures and sqlparse recursion (#1472) ([9ec95b7d](googleapis/python-spanner@9ec95b7d)) * handle errors during stream restart in snapshot (#1471) ([c0668735](googleapis/python-spanner@c0668735)) </details>
No description provided.