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

deps: remove client-core dependency from bigtable-hbase-2.x #3620

Merged
merged 7 commits into from
May 13, 2022

Conversation

kolea2
Copy link
Collaborator

@kolea2 kolea2 commented May 12, 2022

No description provided.

@kolea2 kolea2 requested a review from a team as a code owner May 12, 2022 17:33
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigtable Issues related to the googleapis/java-bigtable-hbase API. labels May 12, 2022
@kolea2 kolea2 added the owlbot:run Add this label to trigger the Owlbot post processor. label May 12, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 12, 2022
BigtableInstanceName bigtableInstanceName =
new BigtableInstanceName(
bigtableSnapshotClusterName =
ClusterName.of(
Copy link
Collaborator

Choose a reason for hiding this comment

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

please use NameUtil from veneer

@kolea2 kolea2 added the owlbot:run Add this label to trigger the Owlbot post processor. label May 13, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 13, 2022
@kolea2 kolea2 added the owlbot:run Add this label to trigger the Owlbot post processor. label May 13, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 13, 2022
@@ -86,7 +85,7 @@ public abstract class BigtableAsyncAdmin implements AsyncAdmin {
private final BigtableHBaseSettings settings;
private final CommonConnection asyncConnection;
private final String bigtableInstanceName;
private BigtableClusterName bigtableSnapshotClusterName;
private String bigtableSnapshotClusterName;
Copy link
Collaborator

Choose a reason for hiding this comment

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

snapshotClusterId

Comment on lines 100 to 104
String clusterId =
configuration.get(BigtableOptionsFactory.BIGTABLE_SNAPSHOT_CLUSTER_ID_KEY, null);
if (clusterId != null) {
BigtableInstanceName bigtableInstanceName =
new BigtableInstanceName(
asyncConnection.getBigtableSettings().getProjectId(),
asyncConnection.getBigtableSettings().getInstanceId());
bigtableSnapshotClusterName = bigtableInstanceName.toClusterName(clusterId);
bigtableSnapshotClusterName = clusterId;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you just assign it?

@@ -517,7 +512,7 @@ private static <T> List<T> filter(Collection<T> r, Predicate<T> predicate) {
return r.stream().filter(predicate).collect(Collectors.toList());
}

private synchronized BigtableClusterName getBackupClusterName() {
private synchronized String getBackupClusterName() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

getBackupClusterId()
Name == is the fully qualified name: projects/my-project/instances/my-instance/clusters/my-clsuter
Id = is the short identifier: my-cluster

@@ -86,7 +84,7 @@ public abstract class BigtableAsyncAdmin implements AsyncAdmin {
private final BigtableHBaseSettings settings;
private final CommonConnection asyncConnection;
private final String bigtableInstanceName;
private BigtableClusterName bigtableSnapshotClusterName;
private String bigtableSnapshotClusterId;
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit. I dont think bigtable prefix is necessary here...I think its inferred from the context

Comment on lines 99 to 103
String clusterId =
configuration.get(BigtableOptionsFactory.BIGTABLE_SNAPSHOT_CLUSTER_ID_KEY, null);
if (clusterId != null) {
BigtableInstanceName bigtableInstanceName =
new BigtableInstanceName(
asyncConnection.getBigtableSettings().getProjectId(),
asyncConnection.getBigtableSettings().getInstanceId());
bigtableSnapshotClusterName = bigtableInstanceName.toClusterName(clusterId);
bigtableSnapshotClusterId = clusterId;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I dont think the if statement is relevant any more

@kolea2 kolea2 added the owlbot:run Add this label to trigger the Owlbot post processor. label May 13, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 13, 2022
@kolea2 kolea2 added the owlbot:run Add this label to trigger the Owlbot post processor. label May 13, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 13, 2022
@kolea2 kolea2 added automerge Merge the pull request once unit tests and other checks pass. owlbot:run Add this label to trigger the Owlbot post processor. labels May 13, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 13, 2022
@gcf-merge-on-green gcf-merge-on-green bot merged commit 413a2fd into googleapis:main May 13, 2022
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label May 13, 2022
@kolea2 kolea2 deleted the client-core-dep branch May 14, 2022 02:37
gcf-merge-on-green bot pushed a commit that referenced this pull request May 18, 2022
🤖 I have created a release *beep* *boop*
---


## [2.3.0](v2.2.0...v2.3.0) (2022-05-18)


### Features

* add enableSnappy flag to import snapshot pipeline and select th… ([#3586](#3586)) ([8c1854d](8c1854d))


### Dependencies

* remove client-core dependency from bigtable-hbase-2.x ([#3620](#3620)) ([413a2fd](413a2fd))


### Documentation

* Update README to use --enableSnappy flag to import snappy compre… ([#3623](#3623)) ([ea73be9](ea73be9))

---
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
Labels
api: bigtable Issues related to the googleapis/java-bigtable-hbase API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants