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-3321] update google-cloud-spanner dependency by pongad · Pull Request #4707 · apache/beam

Conversation

@pongad

@pongad pongad commented Feb 19, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Updates googleapis/google-cloud-java#2890.

There has been breaking changes in com.google.api:gax.
Updating spanner and gax should let users depend on latest versions of
both beam and google-cloud-java.

Sorry, something went wrong.

Uh oh!

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

All reactions
@pongad
update google-cloud-spanner dependency
43325f7
Updates googleapis/google-cloud-java#2890.

There has been breaking changes in com.google.api:gax.
Updating spanner and gax should let users depend on latest versions of
both beam and google-cloud-java.
@pongad pongad changed the title update google-cloud-spanner dependency [BEAM-3321] update google-cloud-spanner dependency Feb 19, 2018
@pongad

pongad commented Feb 19, 2018

Copy link
Copy Markdown
Author

@vkedia Do you want to take a look?

All reactions

Sorry, something went wrong.

Uh oh!

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

@pongad

pongad commented Feb 20, 2018

Copy link
Copy Markdown
Author

Test failures look like flakes to me but I don't know the code base very well :)

All reactions

Sorry, something went wrong.

Uh oh!

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

@lukecwik
lukecwik requested a review from chamikaramj February 21, 2018 04:40
@mairbek

mairbek commented Feb 21, 2018

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

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

@chamikaramj

chamikaramj commented Feb 21, 2018

Copy link
Copy Markdown
Contributor

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 21, 2018

Copy link
Copy Markdown
Contributor

Run Java PostCommit

All reactions

Sorry, something went wrong.

Uh oh!

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

@lukecwik lukecwik assigned chamikaramj Feb 21, 2018
@chamikaramj

chamikaramj commented Feb 22, 2018

Copy link
Copy Markdown
Contributor

Looks like several Spanner post-commit tests are failing.

All reactions

Sorry, something went wrong.

Uh oh!

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

@mairbek

mairbek commented Feb 22, 2018

Copy link
Copy Markdown
Contributor
2018-02-21T21:15:11.649 [ERROR] testRead(org.apache.beam.sdk.io.gcp.spanner.SpannerReadIT)  Time elapsed: 20.46 s  <<< ERROR!
java.lang.NoSuchMethodError: com.google.protobuf.AbstractMessageLite$Builder.addAll(Ljava/lang/Iterable;Ljava/util/List;)V
	at com.google.spanner.v1.Mutation$Write$Builder.addAllColumns(Mutation.java:1176)
	at com.google.cloud.spanner.Mutation.toProto(Mutation.java:416)
	at com.google.cloud.spanner.SpannerImpl$SessionImpl.writeAtLeastOnce(SpannerImpl.java:765)
	at com.google.cloud.spanner.SessionPool$PooledSession.writeAtLeastOnce(SessionPool.java:255)
	at com.google.cloud.spanner.DatabaseClientImpl.writeAtLeastOnce(DatabaseClientImpl.java:60)
	at org.apache.beam.sdk.io.gcp.spanner.SpannerReadIT.testRead(SpannerReadIT.java:131)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.apache.beam.sdk.testing.TestPipeline$1.evaluate(TestPipeline.java:324)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:410)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

All reactions

Sorry, something went wrong.

Uh oh!

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

@pongad

pongad commented Feb 22, 2018

Copy link
Copy Markdown
Author

Hmm! I'll look into this.

All reactions

Sorry, something went wrong.

Uh oh!

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

@pongad
bump protobuf version to fix method not found
1b4c67b
@chamikaramj

chamikaramj commented Feb 22, 2018

Copy link
Copy Markdown
Contributor

Run Java PostCommit

All reactions

Sorry, something went wrong.

Uh oh!

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

vkedia
vkedia reviewed Feb 22, 2018
View reviewed changes
Comment thread build.gradle
@@ -32,7 +32,7 @@ def bigtable_proto_version = "1.0.0-pre3"
def google_clients_version = "1.22.0"
def google_auth_version = "0.7.1"
def grpc_version = "1.2.0"

@vkedia vkedia Feb 22, 2018

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.

do you not need the latest grpc?

Sorry, something went wrong.

Uh oh!

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

All reactions

@pongad pongad Feb 23, 2018

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

Good call

Sorry, something went wrong.

Uh oh!

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

All reactions
vkedia
vkedia reviewed Feb 22, 2018
View reviewed changes
Comment thread build.gradle
findbugs_annotations: "com.github.stephenc.findbugs:findbugs-annotations:1.3.9-1",
findbugs_jsr305: "com.google.code.findbugs:jsr305:3.0.1",
gax_grpc: "com.google.api:gax-grpc:0.20.0",
gax: "com.google.api:gax:1.19.0",

@vkedia vkedia Feb 22, 2018

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.

Actually do we even need to specify gax version here? Only reference to gax I see in the beam repo is in a test which I think can be removed:
https://github.com/apache/beam/search?utf8=%E2%9C%93&q=gax&type=

Sorry, something went wrong.

Uh oh!

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

All reactions

@vkedia vkedia Feb 22, 2018

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.

Oh i see you added a reference to this below. Ignore this.

Sorry, something went wrong.

Uh oh!

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

All reactions
vkedia
vkedia reviewed Feb 22, 2018
View reviewed changes
Comment thread build.gradle
google_cloud_core: "com.google.cloud:google-cloud-core:1.0.2",
google_cloud_core_grpc: "com.google.cloud:google-cloud-core-grpc:$grpc_version",
google_cloud_core: "com.google.cloud:google-cloud-core:1.16.0",
google_cloud_core_grpc: "com.google.cloud:google-cloud-core-grpc:1.16.0",

@vkedia vkedia Feb 22, 2018

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.

I do not think beam needs to directly depend on this as well.

Sorry, something went wrong.

Uh oh!

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

All reactions

@pongad pongad Feb 23, 2018

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

I think it does. I can't remember exactly where. If you remove these deps from pom, the build fails. BEAM verifies that dependency is declared if and only if code uses something from that dependency.

Sorry, something went wrong.

Uh oh!

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

All reactions
@mairbek

mairbek commented Feb 22, 2018

Copy link
Copy Markdown
Contributor

org.apache.beam.runners.fnexecution.data.GrpcDataServiceTest.testMessageReceivedBySingleClientWhenThereAreMultipleClients test has failed

SEVERE: Exception while executing runnable io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed@7edd373e
java.lang.RuntimeException: io.grpc.StatusRuntimeException: CANCELLED: Multiplexer hanging up
	at org.apache.beam.sdk.fn.test.TestStreams.lambda$throwingErrorHandler$0(TestStreams.java:95)
	at org.apache.beam.sdk.fn.test.TestStreams$ForwardingCallStreamObserver.onError(TestStreams.java:146)
	at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:392)
	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:428)
	at io.grpc.internal.ClientCallImpl.access$100(ClientCallImpl.java:76)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:514)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$700(ClientCallImpl.java:431)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:546)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:52)
	at io.grpc.internal.SerializingExecutor$TaskRunner.run(SerializingExecutor.java:152)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: io.grpc.StatusRuntimeException: CANCELLED: Multiplexer hanging up
	at io.grpc.Status.asRuntimeException(Status.java:540)
	... 11 more
All reactions

Sorry, something went wrong.

Uh oh!

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

@pongad

pongad commented Feb 23, 2018

Copy link
Copy Markdown
Author

@mairbek Probably a dumb question. How do I run these tests on my machine? mvn verify seems to not run them.

All reactions

Sorry, something went wrong.

Uh oh!

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

@chamikaramj

chamikaramj commented Feb 23, 2018

Copy link
Copy Markdown
Contributor

Not sure about that test, but you can try following (or something similar) to run post-commit tests locally.

mvn clean install --projects 'sdks/java/io/google-cloud-platform' --batch-mode --errors --fail-at-end -P dataflow-runner -D skipITs=false -D integrationTestPipelineOptions="["--project=apache-beam-testing", "--tempRoot=gs://temp-storage-for-end-to-end-tests", "--runner=TestDataflowRunner"]" failsafe:integration-test

All reactions

Sorry, something went wrong.

Uh oh!

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

@chamikaramj

chamikaramj commented Feb 23, 2018

Copy link
Copy Markdown
Contributor

BTW I have a PR that updates protobuf and updates GRPC only for google-cloud-platform: #4727

Updating GRPC for all modules seems to be complicated and results in other errors.

All reactions

Sorry, something went wrong.

Uh oh!

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

@pongad

pongad commented Feb 23, 2018

Copy link
Copy Markdown
Author

@chamikaramj Sounds good. I'll wait for your change to land then. Then we can see if this PR requires more changes.

All reactions

Sorry, something went wrong.

Uh oh!

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

@pongad pongad mentioned this pull request Feb 27, 2018
Dependency conflicts with Apache Beam Cloud Dataflow runner googleapis/google-cloud-java#2890
Closed
@chamikaramj
chamikaramj removed their request for review May 6, 2018 17:14
@kennknowles

kennknowles commented Jun 28, 2018

Copy link
Copy Markdown
Member

We have turned on autoformatting of the codebase, which causes small conflicts across the board. You can probably safely rebase and just keep your changes. Like this:

$ git rebase
... see some conflicts
$ git diff
... confirmed that the conflicts are just autoformatting
... so we can just keep our changes are do our own autoformat
$ git checkout --theirs --
$ git add -u
$ git rebase --continue
$ ./gradlew spotlessJavaApply

Please ping me if you run into any difficulty.

All reactions

Sorry, something went wrong.

Uh oh!

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

@garrettjonesgoogle

garrettjonesgoogle commented Jul 19, 2018

Copy link
Copy Markdown
Contributor

Superseded by #5988

All reactions

Sorry, something went wrong.

Uh oh!

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

@pongad pongad closed this Jul 20, 2018
@pongad
pongad deleted the bump-spanner branch July 20, 2018 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@vkedia vkedia vkedia left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

@chamikaramj chamikaramj

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.

6 participants

@pongad @mairbek @chamikaramj @kennknowles @garrettjonesgoogle @vkedia
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.