Skip to content
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

fix(bigtable): Mutate groups even after first error #11434

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

bhshkh
Copy link
Contributor

@bhshkh bhshkh commented Jan 10, 2025

This PR has 2 changes

  1. If the number of mutations is greater than maxMutations, the library breaks down the mutations into smaller groups. If any of the group fails, no further groups are tried and the first error seen is returned. In this PR, this behaviour has been changed by trying to apply all further groups even if one of the group fails.
  2. If the MutateRowsRequest fails without returning any response (e.g. in case of DeadlineExceeded error), the per mutation errors are nil. In this PR, this behaviour has been changed to set per mutation error.
    This fixes the conformance test TestMutateRows_Generic_DeadlineExceeded
    Before fix:
=== RUN   TestMutateRows_Generic_DeadlineExceeded
    mutaterows_test.go:229: 
        	Error Trace:	/usr/local/google/home/bahaaiman/Documents/cfdb-workspace-01/cloud-bigtable-clients-test/tests/mutaterows_test.go:229
        	Error:      	Not equal: 
        	            	expected: 1
        	            	actual  : 0
        	Test:       	TestMutateRows_Generic_DeadlineExceeded
--- FAIL: TestMutateRows_Generic_DeadlineExceeded 

After fix:

=== RUN   TestMutateRows_Generic_DeadlineExceeded
--- PASS: TestMutateRows_Generic_DeadlineExceeded 

@bhshkh bhshkh requested review from a team as code owners January 10, 2025 19:32
@product-auto-label product-auto-label bot added the api: bigtable Issues related to the Bigtable API. label Jan 10, 2025
@bhshkh bhshkh requested a review from gkevinzheng January 10, 2025 19:33
@bhshkh bhshkh enabled auto-merge (squash) January 10, 2025 22:12
@bhshkh bhshkh disabled auto-merge January 14, 2025 23:25
@bhshkh bhshkh marked this pull request as draft January 14, 2025 23:25
@bhshkh bhshkh marked this pull request as ready for review January 15, 2025 04:57
@bhshkh bhshkh requested a review from andre-sampaio January 15, 2025 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the Bigtable API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant