Hi, I am working on a project using kafka broker and I face a problem with kafka log retention , We need to delete logs every 24h but after the retention time the broker was stopped and make an issue like this : "ERROR Uncaught exception in scheduled task 'kafka-log-retention' (kafka.utils.KafkaScheduler) org.apache.kafka.common.errors.KafkaStorageException: Error while deleting segme nts for test-1 in dir C:\tmp\log Caused by: java.nio.file.FileSystemException: C:\tmp\log\test-1\0000000000000000 0000.timeindex -> C:\tmp\log\test-1\00000000000000000000.timeindex.deleted: The process cannot access the file because it is being used by another process."
Could you please support me to find a solution. Regards, kawther