cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CASSANDRA-6315) Should not truncate old hintscolumnfamily when upgrade
Date Fri, 08 Nov 2013 02:14:17 GMT

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

Brandon Williams resolved CASSANDRA-6315.
-----------------------------------------

    Resolution: Not A Problem

>From NEWS.txt:

{noformat}
    - The hints schema was changed from 1.1 to 1.2. Cassandra automatically
      snapshots and then truncates the hints column family as part of
      starting up 1.2 for the first time.  Additionally, upgraded nodes
      will not store new hints destined for older (pre-1.2) nodes. It is
      therefore recommended that you perform a cluster upgrade when all
      nodes are up. Because hints will be lost, a cluster-wide repair (with
      -pr) is recommended after upgrade of all nodes
{noformat}

> Should not truncate old hintscolumnfamily when upgrade
> ------------------------------------------------------
>
>                 Key: CASSANDRA-6315
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6315
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: Local Test
>            Reporter: Boole Guo
>
> When I upgrade C* from 1.1.9 to 1.2.6, I notice that the previous hintscolumnfamily would
be directly truncated. 
> ColumnFamilyStore oldHintsCfs = table.getColumnFamilyStore(OLD_HINTS_CF);
>         if (oldHintsCfs.getSSTables().size() > 0)
>         {
>             logger.info("Possible old-format hints found. Truncating");
>             oldHintsCfs.truncate();
>         }



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message