showuon commented on code in PR #14482: URL: https://github.com/apache/kafka/pull/14482#discussion_r1348497724
########## core/src/test/scala/unit/kafka/log/remote/RemoteIndexCacheTest.scala: ########## @@ -524,23 +527,221 @@ class RemoteIndexCacheTest { } } - @Test - def testCorruptOffsetIndexFileExistsButNotInCache(): Unit = { - // create Corrupt Offset Index File - createCorruptRemoteIndexCacheOffsetFile() + @ParameterizedTest + @EnumSource(value = classOf[IndexType], names = Array("OFFSET", "TIMESTAMP", "TRANSACTION")) + def testCorruptCacheIndexFileExistsButNotInCache(indexType: IndexType): Unit = { + // create Corrupted Index File in remote index cache + createCorruptedIndexFile(indexType,cache.cacheDir()) Review Comment: nit: space after comma `(indexType, cache.cacheDir()` -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org