title: Spring Kafka test with embedded Kafka failed on deleting logs
body: <p>I am using spring kafka with the embedded kafka for JUnit test, it gives an error for every test on windows:</p>
  
  <pre><code>Error deleting C:\Users:LXX691\AppData\Local\Temp\kafka-1103610162480947200/.lock: The process cannot access the file because it is being used by another process.
  </code></pre>
  
  <p>I just did the basic configuration like below</p>
  
  <pre><code>@SpringBootTest(webEnvironment = RANDOM_PORT)
  @RunWith(SpringRunner.class)
  public class KafkaTest {
    @Autowired
    EmbeddedKafkaBroker broker;
  
    @Before
    void setUp() throws Exception() {
      // setup producer and consumers
    }
  
    @Test
    void test() {
      producer.send(new ProducerRecord&lt;&gt;("topic", "content"));
    }
  }
  </code></pre>
  
  <p>Any suggestion to resolve or any workaround is appreciated.</p>