cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CASSANDRA-335) Temp SSTable Generation increases by two, instead of one
Date Mon, 03 Aug 2009 02:47:14 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Ellis resolved CASSANDRA-335.
--------------------------------------

    Resolution: Invalid
      Assignee:     (was: Chris Goffinet)

IIRC this is actually done on purpose, so you can just pick max(sstables being merged) + 1
for the compaction sstable id.

> Temp SSTable Generation increases by two, instead of one
> --------------------------------------------------------
>
>                 Key: CASSANDRA-335
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-335
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.4
>            Reporter: Chris Goffinet
>            Priority: Trivial
>             Fix For: 0.4
>
>
> String getTempSSTableFileName()
>     {
>         fileIndexGenerator_.incrementAndGet();
>         return String.format("%s-%s-%s-Data.db",
>                              columnFamily_, SSTable.TEMPFILE_MARKER, fileIndexGenerator_.incrementAndGet());
>     }
> It's incrementing twice. Remove the first one since the return is already calling it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message