GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: allow DirectPath by default + update integration tests by igorbernstein2 · Pull Request #3031 · googleapis/java-bigtable-hbase

Conversation

@igorbernstein2

@igorbernstein2 igorbernstein2 commented Jun 23, 2021

Copy link
Copy Markdown
Collaborator
  • DirectPath is now opt-out by setting google.bigtable.direct.path.allowed to false
  • Integration tests can now verify that they are running over the desired mode by specifying "bigtable.connection-mode" system property
  • Integration tests update their user agent to signal membership in allow/deny lists
  • DirectPathFallbackIT now supports IPv4

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@igorbernstein2
chore: delete deprecate connection methods
a25357f
@igorbernstein2
igorbernstein2 requested a review from a team June 23, 2021 20:38
@product-auto-label product-auto-label Bot added the api: bigtable Issues related to the googleapis/java-bigtable-hbase API. label Jun 23, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 23, 2021
kolea2
kolea2 reviewed Jun 24, 2021
View reviewed changes
Comment thread ...arent/bigtable-client-core/src/main/java/com/google/cloud/bigtable/grpc/BigtableSession.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...able-hbase/src/main/java/com/google/cloud/bigtable/hbase/util/IpVerificationInterceptor.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...ent/bigtable-hbase/src/main/java/com/google/cloud/bigtable/hbase/BigtableOptionsFactory.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@igorbernstein2
feat: allow DirectPath by default + update integration tests
414e5f7
* DirectPath is now opt-out by setting google.bigtable.direct.path.allowed to false
* Integration tests can now verify that they are running over the desired mode by specifying "bigtable.connection-mode" system property
* Integration tests update their user agent to signal membership in allow/deny lists
* DirectPathFallbackIT now supports IPv4
@igorbernstein2
igorbernstein2 force-pushed the directpath2-1x branch from c935655 to 414e5f7 Compare June 28, 2021 17:46
igorbernstein2 added 6 commits June 28, 2021 13:59
@igorbernstein2
Merge remote-tracking branch 'origin/bigtable-1.x' into directpath2-1x
8fd7e3d
@igorbernstein2
disable dns service config lookup
82f7aec
@igorbernstein2
format
214f5fb
@igorbernstein2
format
7652f40
@igorbernstein2
copyright
6a666ce
@igorbernstein2
fix directpath regex
e21c6f3
kolea2
kolea2 reviewed Jun 28, 2021
View reviewed changes
Comment thread ...arent/bigtable-client-core/src/main/java/com/google/cloud/bigtable/grpc/BigtableSession.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

mutianf
mutianf reviewed Jun 28, 2021
View reviewed changes
Comment thread ...gration-tests-common/src/test/java/com/google/cloud/bigtable/hbase/test_env/BigtableEnv.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

coryan
coryan reviewed Jun 28, 2021
View reviewed changes
Comment thread ...parent/bigtable-client-core/src/main/java/com/google/cloud/bigtable/util/DirectPathUtil.java Outdated
public Boolean get() {
String osName = System.getProperty("os.name");
if ("Linux".equals(osName)) {
String cmd = "cat /sys/class/dmi/id/product_name";

@coryan coryan Jun 28, 2021

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

drive-by:

why cat and then read the output? That file (if it exists) /sys/class/dmi/id/produc_name can be opened like any other file.

Also: I think this won't work on GKE, the containers in that case run without the necessary permissions to read that file.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@igorbernstein2 igorbernstein2 Jun 29, 2021

Copy link
Copy Markdown
Collaborator Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

These are excellent points. I was trying to keep consistent with all of the other java clients:
googleapis/gax-java#1250

It seems like that file is accessible in gke:
https://github.com/googleapis/gax-java/pull/1250/files/cf494cef60f4d9ef265e5b4690ebe3cb49537893#r589861385

I'll update both libraries to simply read the file w/o exec

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@coryan coryan Jun 29, 2021

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Ooops, my recollection was wrong regarding GKE, it was Cloud Run and gVisor, but that may have changed again:

googleapis/google-cloud-cpp#3959

For these purposes it might not matter because using Direct Path with Cloud Run might not be that useful or important. If you are ever interested in supporting Windows, I wrote the code a long time ago for that:

https://github.com/grpc/grpc/blob/master/src/core/lib/security/credentials/alts/check_gcp_environment_windows.cc

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@igorbernstein2 igorbernstein2 Jun 29, 2021

Copy link
Copy Markdown
Collaborator Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks for the pointer. Though registry access from java is a tough pill to swallow.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
igorbernstein2 added 2 commits June 29, 2021 10:27
@igorbernstein2
skip shell exec for reading files
3fd1104
@igorbernstein2
fix direct path credential probing
8e180e6
mutianf
mutianf approved these changes Jun 29, 2021
View reviewed changes
@igorbernstein2
igorbernstein2 merged commit 7c33b14 into googleapis:bigtable-1.x Jun 30, 2021
@igorbernstein2
igorbernstein2 deleted the directpath2-1x branch June 30, 2021 14:06
@mutianf mutianf added the release-please:force-run To run release-please label Jun 30, 2021
@release-please release-please Bot removed the release-please:force-run To run release-please label Jun 30, 2021
gcf-merge-on-green Bot pushed a commit that referenced this pull request Jun 30, 2021
@release-please
chore(bigtable-1.x): release 1.22.0 (#3048)
1515605
🤖 I have created a release \*beep\* \*boop\*
---
## [1.22.0](https://www.github.com/googleapis/java-bigtable-hbase/compare/v1.21.1...v1.22.0) (2021-06-30)


### Features

* allow DirectPath by default + update integration tests ([#3031](https://www.github.com/googleapis/java-bigtable-hbase/issues/3031)) ([7c33b14](https://www.github.com/googleapis/java-bigtable-hbase/commit/7c33b14362614be0f2d3ad0b5cc95fa70f6a9add))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
mutianf pushed a commit to mutianf/java-bigtable-hbase that referenced this pull request Sep 20, 2022
@igorbernstein2 @mutianf
feat: allow DirectPath by default + update integration tests (googlea…
4e71696
…pis#3031)

* chore: delete deprecate connection methods

* feat: allow DirectPath by default + update integration tests

* DirectPath is now opt-out by setting google.bigtable.direct.path.allowed to false
* Integration tests can now verify that they are running over the desired mode by specifying "bigtable.connection-mode" system property
* Integration tests update their user agent to signal membership in allow/deny lists
* DirectPathFallbackIT now supports IPv4

* disable dns service config lookup

* format

* format

* copyright

* fix directpath regex

* skip shell exec for reading files

* fix direct path credential probing
mutianf pushed a commit to mutianf/java-bigtable-hbase that referenced this pull request Sep 20, 2022
@release-please @mutianf
chore(bigtable-1.x): release 1.22.0 (googleapis#3048)
06e53fd
🤖 I have created a release \*beep\* \*boop\*
---
## [1.22.0](https://www.github.com/googleapis/java-bigtable-hbase/compare/v1.21.1...v1.22.0) (2021-06-30)


### Features

* allow DirectPath by default + update integration tests ([googleapis#3031](https://www.github.com/googleapis/java-bigtable-hbase/issues/3031)) ([7c33b14](https://www.github.com/googleapis/java-bigtable-hbase/commit/7c33b14362614be0f2d3ad0b5cc95fa70f6a9add))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coryan coryan coryan left review comments
@mutianf mutianf mutianf approved these changes
+1 more reviewer
@kolea2 kolea2 kolea2 left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: bigtable Issues related to the googleapis/java-bigtable-hbase API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@igorbernstein2 @coryan @mutianf @kolea2
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.