Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Update client version & minikube version #142

Merged
merged 3 commits into from
Mar 2, 2017

Conversation

foxish
Copy link
Member

@foxish foxish commented Feb 23, 2017

Bumping up minikube version (0.12.x -> 0.16.0): Fixes #98
Bumping up kubenetes-client version (2.0.3 -> 2.2.1) Fix for the logging issue in #120

Other seemingly relevant changes on the fabric8 client side:

Tests:
locally passes integration tests

cc @ash211 @mccheah

@ash211
Copy link

ash211 commented Feb 23, 2017

@foxish I can't quite tell if that fabric8 bump fixes the issue where a Watch's onClose method doesn't get called when it's supposed to. We worked around this in Spark at #121 (comment)

Should I file a ticket in fabric8 for that or did maybe PR 671 handle it?

@foxish
Copy link
Member Author

foxish commented Feb 23, 2017

@ash211 ah yes, I thought the closing was handled by our code, but #120 (comment) indicates it isn't a sufficient fix. Let's hold off on this PR for now, I'll update it after we've fixed it upstream.

@ash211
Copy link

ash211 commented Feb 23, 2017

Filed upstream as fabric8io/kubernetes-client#674 We'll block merging this PR until there's a released version of kubernetes-client that has a fix for this issue.

@foxish
Copy link
Member Author

foxish commented Mar 2, 2017

@ash211 PTAL, updated the client version to 2.2.0 which was released yesterday and contains the fix to watcher code.

Copy link

@ash211 ash211 left a comment

Choose a reason for hiding this comment

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

LGTM -- @mccheah ?

I'm really glad you were able to find the onWatch issue @foxish ! And the upstream project was speedy on a release too which is much appreciated

@mccheah
Copy link

mccheah commented Mar 2, 2017

+1 and merging

@mccheah mccheah merged commit 4f12335 into k8s-support-alternate-incremental Mar 2, 2017
@mccheah mccheah deleted the bump-client-version branch March 2, 2017 19:09
@cvpatel
Copy link
Member

cvpatel commented Mar 2, 2017

The integration test for this PR failed after the latest commit. We may want to double check.

�[31m*** RUN ABORTED ***�[0m
�[31m java.lang.NoSuchMethodError: okhttp3.OkHttpClient$Builder.pingInterval(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;�[0m
�[31m at io.fabric8.kubernetes.client.utils.HttpClientUtils.createHttpClient(HttpClientUtils.java:115)�[0m
�[31m at io.fabric8.kubernetes.client.BaseClient.(BaseClient.java:45)�[0m
�[31m at io.fabric8.kubernetes.client.DefaultKubernetesClient.(DefaultKubernetesClient.java:116)�[0m
�[31m at org.apache.spark.deploy.kubernetes.integrationtest.minikube.Minikube$.getKubernetesClient(Minikube.scala:105)�[0m
�[31m at org.apache.spark.deploy.kubernetes.integrationtest.KubernetesSuite.beforeAll(KubernetesSuite.scala:72)�[0m
�[31m at org.scalatest.BeforeAndAfterAll$class.beforeAll(BeforeAndAfterAll.scala:187)�[0m
�[31m at org.apache.spark.SparkFunSuite.beforeAll(SparkFunSuite.scala:31)�[0m
�[31m at org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:253)�[0m
�[31m at org.apache.spark.deploy.kubernetes.integrationtest.KubernetesSuite.org$scalatest$BeforeAndAfter$$super$run(KubernetesSuite.scala:45)�[0m
�[31m at org.scalatest.BeforeAndAfter$class.run(BeforeAndAfter.scala:241)�[0m
�[31m ...�[0m

@foxish
Copy link
Member Author

foxish commented Mar 2, 2017

Looking into it.

@mccheah
Copy link

mccheah commented Mar 2, 2017

Looks like an okhttp client conflict, probably because we depend on okhttp ourselves in using Feign. Did Fabric8 upgrade their okhttp version? We should probably match theirs in our own dependencies.

@foxish
Copy link
Member Author

foxish commented Mar 2, 2017

Yes, they updated their client to okHttpClient 3.6 in fabric8io/kubernetes-client#687
Maybe we should use the shader plugin to avoid this sort of conflict?

@mccheah
Copy link

mccheah commented Mar 2, 2017

If we can shade for a long term fix that would be fantastic - but for a short-term fix can we try pushing our own dependency to match theirs? https://github.com/apache-spark-on-k8s/spark/blob/k8s-support-alternate-incremental/pom.xml#L337

Not sure if upgrading on our end would cause conflicts with Feign though. Might need to bulk upgrade as a short-term fix to synchronize everything.

@ash211
Copy link

ash211 commented Mar 2, 2017

If we can bump to okHttpClient 3.6 via a feign bump (and feign is the only way we take a transitive dependency on okhttp) then that seems like the way to go

@mccheah
Copy link

mccheah commented Mar 2, 2017

If I'm understanding Feign correctly, it only pulls in okhttp 3.2.0 even on master: https://github.com/OpenFeign/feign/blob/master/okhttp/build.gradle

We should use Fabric8's transitive dependency, but we'll have to test that this works with Feign.

ash211 pushed a commit that referenced this pull request Mar 8, 2017
* Update client version

* Upgrade minikube

* Update pom.xml
foxish added a commit that referenced this pull request Jul 24, 2017
* Update client version

* Upgrade minikube

* Update pom.xml
ifilonenko pushed a commit to ifilonenko/spark that referenced this pull request Feb 25, 2019
* Update client version

* Upgrade minikube

* Update pom.xml

(cherry picked from commit 4f12335)
puneetloya pushed a commit to puneetloya/spark that referenced this pull request Mar 11, 2019
* Update client version

* Upgrade minikube

* Update pom.xml
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants