sijie closed pull request #2189: dumpContainerDirToTargetCompressed should copy 
files to a containerName named directory
URL: https://github.com/apache/incubator-pulsar/pull/2189
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/tests/integration/src/test/java/org/apache/pulsar/tests/integration/utils/DockerUtils.java
 
b/tests/integration/src/test/java/org/apache/pulsar/tests/integration/utils/DockerUtils.java
index d3d7ba251d..51fb8d8790 100644
--- 
a/tests/integration/src/test/java/org/apache/pulsar/tests/integration/utils/DockerUtils.java
+++ 
b/tests/integration/src/test/java/org/apache/pulsar/tests/integration/utils/DockerUtils.java
@@ -113,7 +113,7 @@ public static void 
dumpContainerDirToTargetCompressed(DockerClient dockerClient,
         // docker api returns names prefixed with "/", it's part of it's 
legacy design,
         // this removes it to be consistent with what docker ps shows.
         final String containerName = 
inspectContainerResponse.getName().replace("/","");
-        File output = new File(getTargetDirectory(containerId),
+        File output = new File(getTargetDirectory(containerName),
                                (path.replace("/", "-") + 
".tar.gz").replaceAll("^-", ""));
         try (InputStream dockerStream = 
dockerClient.copyArchiveFromContainerCmd(containerId, path).exec();
              OutputStream os = new GZIPOutputStream(new 
FileOutputStream(output))) {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to