You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jun Rao (JIRA)" <ji...@apache.org> on 2015/06/22 18:00:07 UTC
[jira] [Resolved] (KAFKA-2290) OffsetIndex should open
RandomAccessFile consistently
[ https://issues.apache.org/jira/browse/KAFKA-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jun Rao resolved KAFKA-2290.
----------------------------
Resolution: Fixed
Fix Version/s: 0.8.3
Thanks for the patch. +1 and committed to trunk.
> OffsetIndex should open RandomAccessFile consistently
> -----------------------------------------------------
>
> Key: KAFKA-2290
> URL: https://issues.apache.org/jira/browse/KAFKA-2290
> Project: Kafka
> Issue Type: Bug
> Components: core
> Affects Versions: 0.9.0
> Reporter: Jun Rao
> Assignee: Chris Black
> Labels: newbie
> Fix For: 0.8.3
>
> Attachments: KAFKA-2290.patch
>
>
> We open RandomAccessFile in "rw" mode in the constructor, but in "rws" mode in resize(). We should use "rw" in both cases since it's more efficient.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)