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 — [BEAM-3519] Overrides gRPC dependency for google-cloud-platform and upgrades protobuf by chamikaramj · Pull Request #4727 · apache/beam

Conversation

@chamikaramj

@chamikaramj chamikaramj commented Feb 22, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Upgrades gRPC dependency for google-cloud-platform module to 1.9.1
Upgrades root level protobuf dependency to 3.5.1.
Upgrades bigtable-protos to 1.0.0.

This change will allow IO connectors in google-cloud-platform module to depend on latest gRPC and protobuf modules.

Following can be done in future PRs.
(1) Upgrade root level gRPC dependency.
(2) Shade gRPC dependency in google-cloud-platform so that we do not run into dependency conflicts.

Sorry, something went wrong.

Uh oh!

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

All reactions
@chamikaramj
chamikaramj force-pushed the grpc_1_9_min branch from 67c91e5 to 6ade465 Compare February 22, 2018 17:28
@chamikaramj

chamikaramj commented Feb 22, 2018

Copy link
Copy Markdown
Contributor Author

Run Java PostCommit

All reactions

Sorry, something went wrong.

Uh oh!

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

@chamikaramj
chamikaramj force-pushed the grpc_1_9_min branch from 6ade465 to 87bb4d5 Compare February 22, 2018 20:05
@chamikaramj

chamikaramj commented Feb 22, 2018

Copy link
Copy Markdown
Contributor Author

Run Java PostCommit

All reactions

Sorry, something went wrong.

Uh oh!

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

@chamikaramj chamikaramj mentioned this pull request Feb 23, 2018
[BEAM-3321] update google-cloud-spanner dependency #4707
Closed
@chamikaramj
chamikaramj force-pushed the grpc_1_9_min branch from 87bb4d5 to 039dd4b Compare February 23, 2018 01:41
@chamikaramj
Overrides gRPC dependency for google-cloud-platform and upgrades prot…
ee0d992
…obuf.

Upgrades gRPC dependency for google-cloud-platform module to 1.9.1

Upgrades root level protobuf dependency to 3.5.1.

Upgrades bigtable-protos to 1.0.0.
@chamikaramj
chamikaramj force-pushed the grpc_1_9_min branch from 039dd4b to ee0d992 Compare February 23, 2018 01:47
@chamikaramj

chamikaramj commented Feb 23, 2018

Copy link
Copy Markdown
Contributor Author

Run Java PostCommit

All reactions

Sorry, something went wrong.

Uh oh!

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

@chamikaramj chamikaramj changed the title Upgrade GRPC and protobuf dependencies for google-cloud-platform project Overrides gRPC dependency for google-cloud-platform and upgrades protobuf Feb 23, 2018
@chamikaramj chamikaramj changed the title Overrides gRPC dependency for google-cloud-platform and upgrades protobuf [BEAM-3519] Overrides gRPC dependency for google-cloud-platform and upgrades protobuf Feb 23, 2018
@chamikaramj

chamikaramj commented Feb 23, 2018

Copy link
Copy Markdown
Contributor Author

Successful post commit run: https://builds.apache.org/job/beam_PostCommit_Java_MavenInstall/6037/

All reactions

Sorry, something went wrong.

Uh oh!

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

@chamikaramj
chamikaramj requested review from kennknowles and lukecwik February 23, 2018 04:01
kennknowles
kennknowles approved these changes Feb 25, 2018
View reviewed changes

@kennknowles kennknowles left a comment

Copy link
Copy Markdown
Member

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.

Overall change LGTM. Can you addressed comments then go ahead and self-merge?

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread sdks/java/io/google-cloud-platform/build.gradle
apply from: project(":").file("build_rules.gradle")
applyJavaNature(enableFindbugs: false)

def io_gcp_grpc_version = "1.9.1"

@kennknowles kennknowles Feb 25, 2018

Copy link
Copy Markdown
Member

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.

Version overrides deserve a comment

Sorry, something went wrong.

Uh oh!

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

All reactions

@chamikaramj chamikaramj Feb 26, 2018

Copy link
Copy Markdown
Contributor 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.

done.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread sdks/java/io/google-cloud-platform/pom.xml
</build>

<properties>
<io_gcp_grpc.version>1.9.1</io_gcp_grpc.version>

@kennknowles kennknowles Feb 25, 2018

Copy link
Copy Markdown
Member

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.

ditto

Sorry, something went wrong.

Uh oh!

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

All reactions

@chamikaramj chamikaramj Feb 26, 2018

Copy link
Copy Markdown
Contributor 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.

Done.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread sdks/java/io/google-cloud-platform/pom.xml Outdated
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-handler</artifactId>
<version>4.1.17.Final</version>

@kennknowles kennknowles Feb 25, 2018

Copy link
Copy Markdown
Member

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.

Put into commented override up top as well.

Sorry, something went wrong.

Uh oh!

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

All reactions

@chamikaramj chamikaramj Feb 26, 2018

Copy link
Copy Markdown
Contributor 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.

Done.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread sdks/java/io/google-cloud-platform/pom.xml Outdated
<groupId>io.netty</groupId>
<artifactId>netty-tcnative-boringssl-static</artifactId>
<scope>runtime</scope>
<version>2.0.7.Final</version>

@kennknowles kennknowles Feb 25, 2018

Copy link
Copy Markdown
Member

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.

ditto

Sorry, something went wrong.

Uh oh!

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

All reactions

@chamikaramj chamikaramj Feb 26, 2018

Copy link
Copy Markdown
Contributor 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.

Done.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread sdks/java/io/google-cloud-platform/build.gradle Outdated
shadow library.java.grpc_stub
shadow "io.grpc:grpc-auth:$io_gcp_grpc_version"
shadow "io.grpc:grpc-netty:$io_gcp_grpc_version"
shadow "io.netty:netty-handler:4.1.17.Final"

@kennknowles kennknowles Feb 25, 2018

Copy link
Copy Markdown
Member

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.

Also put into commented override up top.

Sorry, something went wrong.

Uh oh!

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

All reactions

@chamikaramj chamikaramj Feb 26, 2018

Copy link
Copy Markdown
Contributor 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.

Done.

Sorry, something went wrong.

Uh oh!

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

All reactions
@kennknowles

kennknowles commented Feb 25, 2018

Copy link
Copy Markdown
Member

Also I'm curious what are the consequences of globally upgrading.

All reactions

Sorry, something went wrong.

Uh oh!

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

@chamikaramj
Addresses reviewer comments.
987295a
chamikaramj
chamikaramj commented Feb 26, 2018
View reviewed changes

@chamikaramj chamikaramj left a comment •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor 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.

Globally upgrading resulted in a test timeout during 'mvn clean verify'.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread sdks/java/io/google-cloud-platform/build.gradle
apply from: project(":").file("build_rules.gradle")
applyJavaNature(enableFindbugs: false)

def io_gcp_grpc_version = "1.9.1"

@chamikaramj chamikaramj Feb 26, 2018

Copy link
Copy Markdown
Contributor 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.

done.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread sdks/java/io/google-cloud-platform/build.gradle Outdated
shadow library.java.grpc_stub
shadow "io.grpc:grpc-auth:$io_gcp_grpc_version"
shadow "io.grpc:grpc-netty:$io_gcp_grpc_version"
shadow "io.netty:netty-handler:4.1.17.Final"

@chamikaramj chamikaramj Feb 26, 2018

Copy link
Copy Markdown
Contributor 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.

Done.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread sdks/java/io/google-cloud-platform/pom.xml
</build>

<properties>
<io_gcp_grpc.version>1.9.1</io_gcp_grpc.version>

@chamikaramj chamikaramj Feb 26, 2018

Copy link
Copy Markdown
Contributor 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.

Done.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread sdks/java/io/google-cloud-platform/pom.xml Outdated
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-handler</artifactId>
<version>4.1.17.Final</version>

@chamikaramj chamikaramj Feb 26, 2018

Copy link
Copy Markdown
Contributor 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.

Done.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread sdks/java/io/google-cloud-platform/pom.xml Outdated
<groupId>io.netty</groupId>
<artifactId>netty-tcnative-boringssl-static</artifactId>
<scope>runtime</scope>
<version>2.0.7.Final</version>

@chamikaramj chamikaramj Feb 26, 2018

Copy link
Copy Markdown
Contributor 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.

Done.

Sorry, something went wrong.

Uh oh!

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

All reactions
@chamikaramj

chamikaramj commented Feb 26, 2018

Copy link
Copy Markdown
Contributor Author

Run Java Gradle PreCommit

All reactions

Sorry, something went wrong.

Uh oh!

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

@chamikaramj

chamikaramj commented Feb 26, 2018

Copy link
Copy Markdown
Contributor Author

Run Java PreCommit

All reactions

Sorry, something went wrong.

Uh oh!

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

@lukecwik

lukecwik commented Feb 26, 2018

Copy link
Copy Markdown
Member

Note that this PR doesn't upgrade the worker with an updated version with gRPC/protobuf being upgraded internally.

Which means that you can't be sure that you were using gRPC 1.9.1 or whatever the Dataflow worker is vending.

Also, can you provide more details about the failure since a test timed out doesn't give much depth.

All reactions

Sorry, something went wrong.

Uh oh!

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

@kennknowles

kennknowles commented Feb 26, 2018

Copy link
Copy Markdown
Member

Yea, I neglected to consider that these were dependencies that Dataflow clobbers. Dataflow presumably has documentation for users on what versions it will clobber with. I think it is fair that GCP connectors use those versions. Certainly integration tests must run with those versions.

All reactions

Sorry, something went wrong.

Uh oh!

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

kennknowles
kennknowles requested changes Feb 26, 2018
View reviewed changes
Comment thread sdks/java/io/google-cloud-platform/pom.xml
</build>

<properties>
<!-- gRPC and netty dependencies are overriden for google-cloud-platform module. -->

@kennknowles kennknowles Feb 26, 2018

Copy link
Copy Markdown
Member

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.

This comment is not an explanation. You need to say why you have an overridden version here.

Someone coming across this later should understand whether it is safe to remove the special case, should know how to test it, and if it is not safe to remove they should be able to figure out steps towards removing it. Or they should know why it will be separate forever or why it is harmless.

Sorry, something went wrong.

Uh oh!

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

All reactions
@kevmo314 kevmo314 mentioned this pull request May 20, 2018
Dependency conflicts with Apache Beam Cloud Dataflow runner googleapis/google-cloud-java#2890
Closed
@kevmo314

kevmo314 commented May 23, 2018

Copy link
Copy Markdown

Hi, are there any updates to this pull request? This is still blocking googleapis/google-cloud-java#2890 and as a consequence, being able to use Firestore with Apache Beam.

All reactions

Sorry, something went wrong.

Uh oh!

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

@chamikaramj

chamikaramj commented May 23, 2018

Copy link
Copy Markdown
Contributor Author

We are actively looking into this but the fix will probably not get into next release (2.5.0).

All reactions

Sorry, something went wrong.

Uh oh!

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

@talonx talonx mentioned this pull request Jun 11, 2018
Dependency issues with PubSub and beam-sdks-java-io-google-cloud-platform googleapis/google-cloud-java#3363
Closed
@chamikaramj

chamikaramj commented Jun 28, 2018

Copy link
Copy Markdown
Contributor Author

Closing in favor of #5767

All reactions

Sorry, something went wrong.

Uh oh!

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

@chamikaramj chamikaramj closed this Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@kennknowles kennknowles kennknowles requested changes
@lukecwik lukecwik Awaiting requested review from lukecwik

Uh oh!

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

Assignees

No one assigned

Labels

None yet

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

@chamikaramj @kennknowles @lukecwik @kevmo314
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.