On Windows, Kafka 3.0.0 is producing AccessDeniedException's. Mainly due to using FileChannel.open(path, StandardOpenOption.READ) on a directory which will always fail on Windows. (https://mail.openjdk.java.net/pipermail/nio-dev/2013-February/002123.html) Example error code: org.apache.kafka.common.utils.Utils.flushDir(Utils.java:953)
Any change this will be solved soon? Spring Boot 2.6 upgraded the Kafka dependency to 3.0.0 so this error has high impact as all tests using @EmbeddedKafka on Windows developer laptops won't work anymore. More error reports: https://stackoverflow.com/questions/69289641/accessdeniedexception-while-running-apache-kafka-3-on-windows Regards, Martijn de Bruijn Software engineer