showuon commented on code in PR #13850:
URL: https://github.com/apache/kafka/pull/13850#discussion_r1233980545
##########
core/src/test/scala/unit/kafka/log/remote/RemoteIndexCacheTest.scala:
##########
@@ -117,51 +128,60 @@ class RemoteIndexCacheTest {
@Test
def testCacheEntryExpiry(): Unit = {
- val cache = new RemoteIndexCache(maxSize = 2, rsm, logDir =
logDir.toString)
+ // close existing cache created in test setup before creating a new one
+ Utils.closeQuietly(cache, "RemoteIndexCache created for unit test")
Review Comment:
OK, got it. Make sense.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]