[ https://issues.apache.org/jira/browse/KAFKA-15169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17741502#comment-17741502 ]
Divij Vaidya commented on KAFKA-15169: -------------------------------------- I would probably have a test where: # we corrupt the index file (by removing lines from the tail) # we call getIndexEntry # it throws corrupt record exception # we call fetchAndCreateIndex # it fetches from remote storage # new index is created # we verify that the new index file created passes the sanity check and the file on disk is not corrupted any more > Add a test to make sure the remote index file is overwritten for the earlier > existing(corrupted) files. > ------------------------------------------------------------------------------------------------------- > > Key: KAFKA-15169 > URL: https://issues.apache.org/jira/browse/KAFKA-15169 > Project: Kafka > Issue Type: Test > Reporter: Satish Duggana > Priority: Major > -- This message was sent by Atlassian Jira (v8.20.10#820010)