This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/master by this push:
new ba5debb88e Replace deprecated getNextTarEntry with getNextEntry in
DockerUtils (#4436)
ba5debb88e is described below
commit ba5debb88e425d390f095ff6901d129118b4981c
Author: ZhangJian He <[email protected]>
AuthorDate: Fri Jun 14 20:27:32 2024 +0800
Replace deprecated getNextTarEntry with getNextEntry in DockerUtils (#4436)
Signed-off-by: ZhangJian He <[email protected]>
---
.../org/apache/bookkeeper/tests/integration/utils/DockerUtils.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/tests/integration-tests-utils/src/main/java/org/apache/bookkeeper/tests/integration/utils/DockerUtils.java
b/tests/integration-tests-utils/src/main/java/org/apache/bookkeeper/tests/integration/utils/DockerUtils.java
index a3b8778946..f0dd46912a 100644
---
a/tests/integration-tests-utils/src/main/java/org/apache/bookkeeper/tests/integration/utils/DockerUtils.java
+++
b/tests/integration-tests-utils/src/main/java/org/apache/bookkeeper/tests/integration/utils/DockerUtils.java
@@ -132,7 +132,7 @@ public class DockerUtils {
try (InputStream dockerStream =
docker.copyArchiveFromContainerCmd(containerId, path).exec();
TarArchiveInputStream stream = new
TarArchiveInputStream(dockerStream)) {
- TarArchiveEntry entry = stream.getNextTarEntry();
+ TarArchiveEntry entry = stream.getNextEntry();
while (entry != null) {
if (entry.isFile()) {
File targetDir = getTargetDirectory(containerId);
@@ -149,7 +149,7 @@ public class DockerUtils {
}
}
}
- entry = stream.getNextTarEntry();
+ entry = stream.getNextEntry();
}
} catch (RuntimeException | IOException e) {
LOG.error("Error reading bk logs from container {}", containerId,
e);