Skip to content

impl(bigtable): support bigtable cookie in AsyncSampleRows#13479

Merged
dbolduc merged 2 commits intogoogleapis:mainfrom
dbolduc:bigtable-retry-context-async-sample-rows
Jan 19, 2024
Merged

impl(bigtable): support bigtable cookie in AsyncSampleRows#13479
dbolduc merged 2 commits intogoogleapis:mainfrom
dbolduc:bigtable-retry-context-async-sample-rows

Conversation

@dbolduc
Copy link
Copy Markdown
Member

@dbolduc dbolduc commented Jan 19, 2024

Part of the work for #13447

Again, we need to hold onto the grpc::ClientContext. Reset the ptr when we are done with it.

Note that only tests that retry need the metadata_fixture_.SetServerMetadata(...) treatment.


This change is Reviewable

@product-auto-label product-auto-label bot added the api: bigtable Issues related to the Bigtable API. label Jan 19, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e2ded42) 93.11% compared to head (a27e7a7) 93.12%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13479   +/-   ##
=======================================
  Coverage   93.11%   93.12%           
=======================================
  Files        2183     2183           
  Lines      190200   190245   +45     
=======================================
+ Hits       177112   177160   +48     
+ Misses      13088    13085    -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dbolduc dbolduc marked this pull request as ready for review January 19, 2024 06:39
@dbolduc dbolduc requested a review from a team January 19, 2024 06:39
timer_promise.set_value(make_status_or(std::chrono::system_clock::now()));
}

TEST_F(AsyncSampleRowKeysTest, BigtableCookie) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe add a comment saying the validation happens in the metadata fixture? It kind of makes it hard to see what the test is doing

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added clarifying comments which should draw the reader's eye.

@dbolduc dbolduc enabled auto-merge (squash) January 19, 2024 16:42
@dbolduc dbolduc merged commit a5f272d into googleapis:main Jan 19, 2024
@dbolduc dbolduc deleted the bigtable-retry-context-async-sample-rows branch May 29, 2025 21:00
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.

2 participants