From 8ddb879d88891be4c62e708f785108b4726f96c9 Mon Sep 17 00:00:00 2001 From: Jaromir Hamala Date: Fri, 5 Apr 2024 19:50:42 +0200 Subject: [PATCH] experiment: file permissions for kafka persistence in a test updated (#14) --- .../src/test/java/io/questdb/kafka/ExactlyOnceIT.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/integration-tests/exactlyonce/src/test/java/io/questdb/kafka/ExactlyOnceIT.java b/integration-tests/exactlyonce/src/test/java/io/questdb/kafka/ExactlyOnceIT.java index b7b6c07..009ac11 100644 --- a/integration-tests/exactlyonce/src/test/java/io/questdb/kafka/ExactlyOnceIT.java +++ b/integration-tests/exactlyonce/src/test/java/io/questdb/kafka/ExactlyOnceIT.java @@ -134,6 +134,9 @@ private static KafkaContainer newKafkaContainer(int id) { // create world-writable directory Files.createDirectories(kafkaData, PosixFilePermissions.asFileAttribute(rwxrwxrwx)); + Files.setPosixFilePermissions(kafkaData, rwxrwxrwx); + Files.setPosixFilePermissions(kafkaData.getParent(), rwxrwxrwx); + Files.setPosixFilePermissions(kafkaData.getParent().getParent(), rwxrwxrwx); // p.of(kafkaData.toAbsolutePath().toString()); // io.questdb.std.Files.mkdirs(p, 0_777); StringBuilder votersBuilder = new StringBuilder();