Skip to content

Feature/upgrade to latest junix socket dependency#1159

Merged
KostyaSha merged 7 commits intodocker-java:masterfrom
padas2:feature/upgrade-to-latest-junix-socket-dependency
Feb 19, 2019
Merged

Feature/upgrade to latest junix socket dependency#1159
KostyaSha merged 7 commits intodocker-java:masterfrom
padas2:feature/upgrade-to-latest-junix-socket-dependency

Conversation

@padas2
Copy link
Copy Markdown
Contributor

@padas2 padas2 commented Feb 5, 2019

Upgrading the version of junixsocket dependencies


This change is Reviewable

@dbyron0
Copy link
Copy Markdown

dbyron0 commented Feb 5, 2019

Is kohlschutter/junixsocket#31 relevant? Perhaps with version 2.1.0 (or maybe 2.1.2 to get the latest), we no longer need to monkey patch junixsocket here and can delete https://github.com/docker-java/docker-java/blob/master/src/main/java/org/newsclub/net/unix/AFUNIXSocketImpl.java ? And if we do, I bet we don't need AFUnixSocketException either.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Feb 6, 2019

Codecov Report

Merging #1159 into master will decrease coverage by 0.23%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1159      +/-   ##
=========================================
- Coverage   58.64%   58.4%   -0.24%     
=========================================
  Files         451     450       -1     
  Lines        8893    8715     -178     
  Branches      545     525      -20     
=========================================
- Hits         5215    5090     -125     
+ Misses       3382    3349      -33     
+ Partials      296     276      -20
Impacted Files Coverage Δ
.../com/github/dockerjava/jaxrs/ApacheUnixSocket.java 0% <0%> (-42.7%) ⬇️
.../dockerjava/jaxrs/UnixConnectionSocketFactory.java 35.71% <0%> (-35.72%) ⬇️
...ub/dockerjava/netty/NettyDockerCmdExecFactory.java 43.69% <0%> (-12.61%) ⬇️
...ava/netty/handler/FramedResponseStreamHandler.java 81.03% <0%> (-3.45%) ⬇️
...b/dockerjava/jaxrs/JerseyDockerCmdExecFactory.java 55.67% <0%> (-0.52%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7b249ad...b8b1693. Read the comment docs.

@padas2
Copy link
Copy Markdown
Contributor Author

padas2 commented Feb 6, 2019

Is kohlschutter/junixsocket#31 relevant? Perhaps with version 2.1.0 (or maybe 2.1.2 to get the latest), we no longer need to monkey patch junixsocket here and can delete https://github.com/docker-java/docker-java/blob/master/src/main/java/org/newsclub/net/unix/AFUNIXSocketImpl.java ? And if we do, I bet we don't need AFUnixSocketException either.

@padas2
Copy link
Copy Markdown
Contributor Author

padas2 commented Feb 6, 2019

Removed AFUNIXSocketImpl and AFUNIXSocketException classes. Compilation passed. Waiting for travis build results.

@KostyaSha
Copy link
Copy Markdown
Member

all socket based tests failed...

CHANGELOG.md Outdated
Change Log
===

## 3.1.0-rc-9
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

3.1.1 even already released....

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Updated changelog

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Are the socket based test failures because of these changes ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

no, released version passing unix/tcp tests (beside 2 configurations). This PR fails because amd64 native libs not found something

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I see this error
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.newsclub.net.unix.NativeUnixSocket

But I believe this class should be available

@KostyaSha
Copy link
Copy Markdown
Member

KostyaSha commented Feb 6, 2019

java.lang.UnsatisfiedLinkError: Artifact junixsocket-native-common does not contain library for amd64-Linux at org.newsclub.net.unix.NativeLibraryLoader.findLibraryArtifact(NativeLibraryLoader.java:70) at org.newsclub.net.unix.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:127) at org.newsclub.net.unix.NativeUnixSocket.<clinit>(NativeUnixSocket.java:37) at org.newsclub.net.unix.AFUNIXSocket.<init>(AFUNIXSocket.java:37) at org.newsclub.net.unix.AFUNIXSocket.newInstance(AFUNIXSocket.java:56) at com.github.dockerjava.jaxrs.ApacheUnixSocket.<init>(ApacheUnixSocket.java:51) at com.github.dockerjava.jaxrs.UnixConnectionSocketFactory.createSocket(UnixConnectionSocketFactory.java:66) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:119) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:450) at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:278) at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$1(JerseyInvocation.java:767) at org.glassfish.jersey.internal.Errors.process(Errors.java:316) at org.glassfish.jersey.internal.Errors.process(Errors.java:298) at org.glassfish.jersey.internal.Errors.process(Errors.java:229) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:414) at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:765) at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:428) at org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:324) at com.github.dockerjava.jaxrs.InspectImageCmdExec.execute(InspectImageCmdExec.java:27) at com.github.dockerjava.jaxrs.InspectImageCmdExec.execute(InspectImageCmdExec.java:13) at com.github.dockerjava.jaxrs.AbstrSyncDockerCmdExec.exec(AbstrSyncDockerCmdExec.java:23) at com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:35) at com.github.dockerjava.core.command.InspectImageCmdImpl.exec(InspectImageCmdImpl.java:40) at com.github.dockerjava.junit.DockerRule.before(DockerRule.java:80) at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:46) 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:393) at org.apache.maven.surefire.junitcore.pc.InvokerStrategy.schedule(InvokerStrategy.java:54) at org.apache.maven.surefire.junitcore.pc.Scheduler.schedule(Scheduler.java:352) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:393) 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 jav

pom.xml Outdated

<bouncycastle.version>1.60</bouncycastle.version>
<junixsocket.version>2.0.4</junixsocket.version>
<junixsocket.version>2.1.0</junixsocket.version>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
<junixsocket.version>2.1.0</junixsocket.version>
<junixsocket.version>2.1.2</junixsocket.version>

Does this by chance make the failure go away?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

let's try

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please update to 2.2.0 (the latest version)


<bouncycastle.version>1.60</bouncycastle.version>
<junixsocket.version>2.0.4</junixsocket.version>
<junixsocket.version>2.1.2</junixsocket.version>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
<junixsocket.version>2.1.2</junixsocket.version>
<junixsocket.version>2.2.0</junixsocket.version>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Let's see if this gets us farther. Also see kohlschutter/junixsocket#31 (comment) for more suggestions.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Yes, please directly update to 2.2.0. There's no point in moving anymore.

@KostyaSha KostyaSha added this to the 3.1.2 milestone Feb 19, 2019
@KostyaSha KostyaSha merged commit 89b80a9 into docker-java:master Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants