FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix: Second execution of a docker command in Netty implementation always fails by tejksat · Pull Request #630 · docker-java/docker-java · GitHub

Repository navigation

Fix: Second execution of a docker command in Netty implementation always fails - #630

Merged
marcuslinke merged 2 commits into
docker-java:masterfrom
tejksat:fixWebTargetMutability
Jul 9, 2016
Merged

marcuslinke merged 2 commits into
docker-java:masterfrom
tejksat:fixWebTargetMutability

Conversation

tejksat commented Jul 7, 2016 •
edited by marcuslinke
Loading

Copy link
Copy Markdown
Contributor

Unable to setup a valuable integration test because TestDockerCmdExecFactory changes default DockerCmdExecFactoryImpl behavior in the way it becomes pointless. It creates WebTarget on every exec() invocation:

"main@1" prio=5 tid=0x1 nid=NA runnable
  java.lang.Thread.State: RUNNABLE
      at com.github.dockerjava.netty.WebTarget.<init>(WebTarget.java:28)
      at com.github.dockerjava.netty.DockerCmdExecFactoryImpl.getBaseResource(DockerCmdExecFactoryImpl.java:577)
      at com.github.dockerjava.netty.DockerCmdExecFactoryImpl.createCreateContainerCmdExec(DockerCmdExecFactoryImpl.java:396)
      at com.github.dockerjava.core.TestDockerCmdExecFactory$1.exec(TestDockerCmdExecFactory.java:103)
      at com.github.dockerjava.core.TestDockerCmdExecFactory$1.exec(TestDockerCmdExecFactory.java:100)
      at com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:35)
      at com.github.dockerjava.core.command.CreateContainerCmdImpl.exec(CreateContainerCmdImpl.java:177)
      ...

This change is

tejksat commented Jul 7, 2016

Copy link
Copy Markdown
Contributor Author

@KostyaSha tests initialization fails with the response from Docker: {"message":"starting container with HostConfig was deprecated since v1.10 and removed in v1.12"}. I'm not sure if it is my fault. Could you please check?

Copy link
Copy Markdown
Member

docker-java isn't adopted to 1.24 yet. Working on it but firstly need end #620 , then IT on 1.11 docker version would work right.

tejksat commented Jul 7, 2016

Copy link
Copy Markdown
Contributor Author

@KostyaSha ok, thank you!

Copy link
Copy Markdown
Contributor

@tejksat Thanks for your contribution! LGTM.

marcuslinke merged commit 1c14bc3 into docker-java:master Jul 9, 2016
marcuslinke changed the title Fix for #625 Fix: Second execution of a docker command in Netty implementation always fails Jul 9, 2016
tejksat deleted the fixWebTargetMutability branch July 12, 2016 12:19
panuse pushed a commit to TuKangTech/docker-java that referenced this pull request Aug 20, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL