That's true. However, all CL headers are cached in clHeaders and in most cases, CL headers only need to be read, not written.

Jun
IBM Almaden Research Center
K55/B1, 650 Harry Road, San Jose, CA 95120-6099

junrao@almaden.ibm.com


Jonathan Ellis <jbellis@gmail.com> wrote on 09/28/2009 08:25:32 PM:

> [image removed]

>
> Re: commit logs are not deleted

>
> Jonathan Ellis

>
> to:

>
> cassandra-user

>
> 09/28/2009 08:26 PM

>
> Please respond to cassandra-user

>
>
> Right, but the corollary is that then you have to scan all the
> commitlog segment headers when flushing an empty memtable.  I think
> the cure is potentially worse than the disease there.
>
> On Mon, Sep 28, 2009 at 10:21 PM, Jun Rao <junrao@almaden.ibm.com> wrote:
> > A solution to this problem is to still call discardCompletedSegments() when
> > flushing an empty memtable.
> >
> > Jun
> > IBM Almaden Research Center
> > K55/B1, 650 Harry Road, San Jose, CA 95120-6099
> >
> > junrao@almaden.ibm.com
> >
> >
> > Igor Katkov <ikatkov@gmail.com> wrote on 09/28/2009 04:32:06 PM:
> >
> >> [image removed]
> >>
> >> Re: commit logs are not deleted
> >>
> >> Igor Katkov
> >>
> >> to:
> >>
> >> cassandra-user
> >>
> >> 09/28/2009 04:33 PM
> >>
> >> Please respond to cassandra-user
> >
> >>
> >> Excellent! Many thanks.
> >>
> >> It works, but there is a minor thing:
> >> the very first created commit log segment does not get deleted.
> >> Log if filled with lines like
> >> Not safe to delete commit log d:/cassandra-4/data/commitlog
> >> \CommitLog-1254177667321.log; dirty is 1,
> >>
> >
> >> On Mon, Sep 28, 2009 at 5:21 PM, Jonathan Ellis <jbellis@gmail.com> wrote:
> >> I have a fix now at
> >> https://issues.apache.org/jira/browse/CASSANDRA-459 -- only applies to
> >> current trunk.  When Jun finishes reviewing I will backport to 0.4.
> >>
> >> Sorry for the wait,
> >>
> >> -Jonathan
> >>
> >> On Mon, Sep 28, 2009 at 2:40 PM, Igor Katkov <ikatkov@gmail.com> wrote:
> >> > Does anyone else has the same problem with 0.4?
> >> > As far as I know Digg and Rackspace are biggest adopters of Cassandra.
> >> > They
> >> > must be running 0.3 then.
> >> >
> >> >
> >> > On Sun, Sep 27, 2009 at 12:20 PM, Igor Katkov <ikatkov@gmail.com> wrote:
> >> >>
> >> >> full log is here (new)
> >> >> http://www.katkovonline.com/cassandra-log.zip
> >> >>
> >> >> On Sun, Sep 27, 2009 at 12:18 PM, Igor Katkov <ikatkov@gmail.com>
> >> >> wrote:
> >> >>>
> >> >>> There is no log lines with "column family 1"
> >> >>> There are only "column family 0"
> >> >>>
> >> >>> On Sun, Sep 27, 2009 at 12:02 PM, Jonathan Ellis <jbellis@gmail.com>
> >> >>> wrote:
> >> >>>>
> >> >>>> we're looking for "column family 1"
> >> >>>>
> >> >
> >> >