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

impl(bigtable): duplicate AsyncRowSampler #9221

Merged

Conversation

dbolduc
Copy link
Member

@dbolduc dbolduc commented Jun 8, 2022

The ground work for #9173

cp AsyncRowSampler LegacyAsyncRowSampler

After this PR, I will modify AsyncRowSampler to use the modern Stub instead of the DataClient.

REVIEWER: this is broken up into multiple commits to make the changes easier to see.


This change is Reviewable

@product-auto-label product-auto-label bot added the api: bigtable Issues related to the Bigtable API. label Jun 8, 2022
@google-cloud-cpp-bot
Copy link
Collaborator

Google Cloud Build Logs
For commit: 1917aa02f31970079ea6fdb49cb63e9161650d5e

ℹ️ NOTE: Kokoro logs are linked from "Details" below.

@codecov
Copy link

codecov bot commented Jun 8, 2022

Codecov Report

Merging #9221 (1917aa0) into main (d2aad2b) will decrease coverage by 0.00%.
The diff coverage is 97.05%.

@@            Coverage Diff             @@
##             main    #9221      +/-   ##
==========================================
- Coverage   94.52%   94.51%   -0.01%     
==========================================
  Files        1454     1454              
  Lines      130338   130338              
==========================================
- Hits       123198   123192       -6     
- Misses       7140     7146       +6     
Impacted Files Coverage Δ
google/cloud/bigtable/data_client.h 100.00% <ø> (ø)
google/cloud/bigtable/table.cc 99.25% <ø> (ø)
...bigtable/internal/legacy_async_row_sampler_test.cc 96.34% <96.34%> (ø)
...loud/bigtable/internal/legacy_async_row_sampler.cc 100.00% <100.00%> (ø)
google/cloud/pubsub/subscriber_connection_test.cc 97.22% <0.00%> (-0.70%) ⬇️
google/cloud/spanner/database_admin_connection.cc 85.14% <0.00%> (-0.58%) ⬇️
...le/cloud/spanner/database_admin_connection_test.cc 99.40% <0.00%> (-0.30%) ⬇️
google/cloud/pubsub/samples/samples.cc 91.97% <0.00%> (-0.08%) ⬇️
.../cloud/bigtable/internal/async_row_sampler_test.cc
...oogle/cloud/bigtable/internal/async_row_sampler.cc
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d2aad2b...1917aa0. Read the comment docs.

@dbolduc dbolduc marked this pull request as ready for review June 8, 2022 18:18
@dbolduc dbolduc requested a review from a team as a code owner June 8, 2022 18:18
Copy link
Contributor

@devbww devbww left a comment

Choose a reason for hiding this comment

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

What's the point of "restore AsyncRowSampler but don't build it"?

@dbolduc
Copy link
Member Author

dbolduc commented Jun 8, 2022

What's the point of "restore AsyncRowSampler but don't build it"?

My thinking was that the reviewer can easily verify that

  1. the async_row_sampler* code didn't change (by looking at the overall diff of the PR)
  2. the legacy_async_row_sampler* code is in use

@devbww
Copy link
Contributor

devbww commented Jun 8, 2022

So, you'll remove it in a followup?

@dbolduc
Copy link
Member Author

dbolduc commented Jun 8, 2022

So, you'll remove it in a followup?

I will transform AsyncRowSampler to use the "modern API" (Stub classes, common policies) instead of the bigtable specific ones. Then I will start building it again.

The LegacyAsyncRowSampler will exist for nearly a year until the deprecation policy expires on #8800

@devbww
Copy link
Contributor

devbww commented Jun 8, 2022

I will transform AsyncRowSampler to use the "modern API" (Stub classes, common policies) instead of the bigtable specific ones. Then I will start building it again.

I see. Thanks.

@dbolduc dbolduc merged commit 0ed8eac into googleapis:main Jun 8, 2022
@dbolduc dbolduc deleted the bigtable-duplicate-async-row-sampler branch June 8, 2022 18:54
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.

3 participants