You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "divijvaidya (via GitHub)" <gi...@apache.org> on 2023/09/27 10:27:08 UTC
[GitHub] [kafka] divijvaidya commented on a diff in pull request #14459: KAFKA-15511: Catch CorruptIndexException instead of CorruptRecordException
divijvaidya commented on code in PR #14459:
URL: https://github.com/apache/kafka/pull/14459#discussion_r1338397666
##########
core/src/test/scala/unit/kafka/log/remote/RemoteIndexCacheTest.scala:
##########
@@ -598,4 +615,11 @@ class RemoteIndexCacheTest {
timeIndex.flush()
}
}
+
+ private def createCorruptRemoteIndexCacheOffsetFile(): Unit = {
+ val pw = new PrintWriter((remoteOffsetIndexFile(new File(tpDir,RemoteIndexCache.DIR_NAME),rlsMetadata)))
Review Comment:
nit
spaces after `,` for each argument
##########
core/src/test/scala/unit/kafka/log/remote/RemoteIndexCacheTest.scala:
##########
@@ -598,4 +615,11 @@ class RemoteIndexCacheTest {
timeIndex.flush()
}
}
+
+ private def createCorruptRemoteIndexCacheOffsetFile(): Unit = {
+ val pw = new PrintWriter((remoteOffsetIndexFile(new File(tpDir,RemoteIndexCache.DIR_NAME),rlsMetadata)))
+ pw.write("Hello, world")
Review Comment:
please add a comment on why this is considered as "corrupted"
--
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-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org