cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Zotov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-4655) Truncate operation doesn't delete rows from HintsColumnFamily.
Date Thu, 06 Dec 2012 11:48:59 GMT

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

Alexey Zotov updated CASSANDRA-4655:
------------------------------------

    Attachment: cassandra-1.2-4655-hints_truncation-v2.txt

Jonathan, I'm sorry for so long delay and a silence from my side. 
I've created another patch against current trunk (46f1c7fabd6a7102a7a363bcfdc40c62a3bdc461).
It uses local column family as you suggested. I tested it on three-nodes ccm cluster with
replication factor 2. Steps:
1. load 150KB per node
2. stop one of them
3. wait until both live nodes will have about 20MB of data
4. stop loading of data
5. start downed node
6. wait 3-5 seconds after start of hints delivery process and truncate data
7. wait until data will be successfully truncated
Results:
Nodes which were not stopped are completely empty. Another node [that was stopped] contains
about several tens rows but all their were marked as deleted. Note that the both nodes which
weren't stopped before truncate operation has about 5-6 thousands of rows.

Please review the patch.
                
> Truncate operation doesn't delete rows from HintsColumnFamily.
> --------------------------------------------------------------
>
>                 Key: CASSANDRA-4655
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4655
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>         Environment: Centos 6.2, Cassandra 1.1.4 (DataStax distribution), three-nodes
cluster.
>            Reporter: Alexey Zotov
>            Priority: Minor
>              Labels: hintedhandoff, truncate
>             Fix For: 1.2.1
>
>         Attachments: cassandra-1.2-4655-hints_truncation.txt, cassandra-1.2-4655-hints_truncation-v2.txt
>
>
> Steps to reproduce:
> 1. Start writing of data to some column family, let name it 'MyCF'
> 2. Stop 1 node
> 3. Wait some time (until some data will be collected in HintsColumnFamily)
> 4. Start node (HintedHandoff will be started automatically for 'MyCF')
> 5. Run 'truncate' command for 'MyCF' column family from command from cli
> 6. Wait until truncate will be finished
> 7. You will see that 'MyCF' is not empty because HintedHandoff is copying data 
> So, I suggest to clean HintsColumnFamily (for truncated column family) before we had
started to discard sstables. 
> I think it should be done in CompactionManager#submitTrucate() method. I can try to create
patch but I need to know right way of cleaning HintsColumnFamily. Could you clarify it?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message