[jira] [Updated] (KAFKA-5382) Log recovery can fail if topic names contain one of the index suffixes
[ https://issues.apache.org/jira/browse/KAFKA-5382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ewen Cheslack-Postava updated KAFKA-5382: - Fix Version/s: (was: 0.11.0.0.) 0.11.0.0 > Log recovery can fail if topic names contain one of the index suffixes > -- > > Key: KAFKA-5382 > URL: https://issues.apache.org/jira/browse/KAFKA-5382 > Project: Kafka > Issue Type: Bug >Affects Versions: 0.10.2.0, 0.10.2.1 >Reporter: Jason Gustafson > Fix For: 0.11.0.0 > > > Our log recovery logic fails in 0.10.2 and prior releases if the topic name > contains "index" or "timeindex." The issue is this snippet: > {code} > val logFile = > if (filename.endsWith(TimeIndexFileSuffix)) > new File(file.getAbsolutePath.replace(TimeIndexFileSuffix, > LogFileSuffix)) > else > new File(file.getAbsolutePath.replace(IndexFileSuffix, > LogFileSuffix)) > if(!logFile.exists) { > warn("Found an orphaned index file, %s, with no corresponding log > file.".format(file.getAbsolutePath)) > file.delete() > } > {code} > The {{replace}} is a global replace, so the substituted filename is incorrect > if the topic contains the index suffix. > Note this is already fixed in trunk and 0.11.0. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Updated] (KAFKA-5382) Log recovery can fail if topic names contain one of the index suffixes
[ https://issues.apache.org/jira/browse/KAFKA-5382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Gustafson updated KAFKA-5382: --- Fix Version/s: 0.10.2.2 > Log recovery can fail if topic names contain one of the index suffixes > -- > > Key: KAFKA-5382 > URL: https://issues.apache.org/jira/browse/KAFKA-5382 > Project: Kafka > Issue Type: Bug >Affects Versions: 0.10.2.0, 0.10.2.1 >Reporter: Jason Gustafson >Assignee: Jason Gustafson > Fix For: 0.10.2.2 > > > Our log recovery logic fails in 0.10.2 and prior releases if the topic name > contains "index" or "timeindex." The issue is this snippet: > {code} > val logFile = > if (filename.endsWith(TimeIndexFileSuffix)) > new File(file.getAbsolutePath.replace(TimeIndexFileSuffix, > LogFileSuffix)) > else > new File(file.getAbsolutePath.replace(IndexFileSuffix, > LogFileSuffix)) > if(!logFile.exists) { > warn("Found an orphaned index file, %s, with no corresponding log > file.".format(file.getAbsolutePath)) > file.delete() > } > {code} > The {{replace}} is a global replace, so the substituted filename is incorrect > if the topic contains the index suffix. > Note this is already fixed in trunk and 0.11.0. -- This message was sent by Atlassian JIRA (v6.3.15#6346)