[ 
https://issues.apache.org/jira/browse/KAFKA-1732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14186334#comment-14186334
 ] 

Neha Narkhede commented on KAFKA-1732:
--------------------------------------

Thanks [~charmalloc]. Missed updating the version myself.

> DumpLogSegments tool fails when path has a '.'
> ----------------------------------------------
>
>                 Key: KAFKA-1732
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1732
>             Project: Kafka
>          Issue Type: Bug
>          Components: tools
>    Affects Versions: 0.8.1.1
>            Reporter: Ewen Cheslack-Postava
>            Assignee: Ewen Cheslack-Postava
>            Priority: Minor
>             Fix For: 0.8.2
>
>         Attachments: KAFKA-1732.patch
>
>
> Using DumpLogSegments in a directory that has a '.' that isn't part of the 
> file extension causes an exception:
> {code}
> 16:48 $ time /Users/ewencp/kafka.git/bin/kafka-run-class.sh 
> kafka.tools.DumpLogSegments  --file 
> /Users/ewencp/kafka.git/system_test/replication_testsuite/testcase_1/logs/broker-3/kafka_server_3_logs/test_1-1/00000000000000016895.index
>  --verify-index-only
> Dumping 
> /Users/ewencp/kafka.git/system_test/replication_testsuite/testcase_1/logs/broker-3/kafka_server_3_logs/test_1-1/00000000000000016895.index
> Exception in thread "main" java.io.FileNotFoundException: 
> /Users/ewencp/kafka.log (No such file or directory)
>       at java.io.FileInputStream.open(Native Method)
>       at java.io.FileInputStream.<init>(FileInputStream.java:146)
>       at kafka.utils.Utils$.openChannel(Utils.scala:162)
>       at kafka.log.FileMessageSet.<init>(FileMessageSet.scala:74)
>       at 
> kafka.tools.DumpLogSegments$.kafka$tools$DumpLogSegments$$dumpIndex(DumpLogSegments.scala:109)
>       at 
> kafka.tools.DumpLogSegments$$anonfun$main$1.apply(DumpLogSegments.scala:80)
>       at 
> kafka.tools.DumpLogSegments$$anonfun$main$1.apply(DumpLogSegments.scala:73)
>       at 
> scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
>       at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:105)
>       at kafka.tools.DumpLogSegments$.main(DumpLogSegments.scala:73)
>       at kafka.tools.DumpLogSegments.main(DumpLogSegments.scala)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to