Skip to content

feat(bigtable): unary direct access checker and it's implementation#2840

Open
sushanb wants to merge 6 commits intomainfrom
dp_check
Open

feat(bigtable): unary direct access checker and it's implementation#2840
sushanb wants to merge 6 commits intomainfrom
dp_check

Conversation

@sushanb
Copy link
Contributor

@sushanb sushanb commented Mar 12, 2026

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)
  • Rollback plan is reviewed and LGTMed
  • All new data plane features have a completed end to end testing plan

Fixes #<issue_number_goes_here> ☕️

If you write sample code, please follow the samples format.

@sushanb sushanb requested a review from igorbernstein2 March 12, 2026 16:03
@sushanb sushanb requested review from a team as code owners March 12, 2026 16:03
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: bigtable Issues related to the googleapis/java-bigtable API. labels Mar 12, 2026
return channelPoolMetricsTracer;
}

@Nullable
Copy link
Contributor

Choose a reason for hiding this comment

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

dont make this nullable, instead add a NoopTracer in NoopMetrics

* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.cloud.bigtable.data.v2.stub;
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is unary/jetstream agnostic, then it should live in data.v2.internal...maybe create a pacakge for dp?

Comment on lines +643 to +644
.setDirectAccessRequested(true)
.setTrafficDirectorEnabled(true)
Copy link
Contributor

Choose a reason for hiding this comment

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

why you ignoring the env var?

* inspecting the response headers.
*/
@InternalApi
public class UnaryDirectAccessChecker implements DirectAccessChecker {
Copy link
Contributor

Choose a reason for hiding this comment

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

s/Unary/Classic

Comment on lines +23 to +24
public interface BigtableChannelFactory {
ManagedChannel createSingleChannel() throws IOException;
Copy link
Contributor

Choose a reason for hiding this comment

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

why not use Supplier


@Override
public boolean check(
BigtableChannelFactory channelFactory, @Nullable DirectPathCompatibleTracer tracer) {
Copy link
Contributor

Choose a reason for hiding this comment

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

move these to the ctor

Copy link
Contributor

Choose a reason for hiding this comment

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

as above, please make the tracer non-null

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 googleapis/java-bigtable API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants