Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-4655

Truncate operation doesn't delete rows from HintsColumnFamily.

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.6
    • None
    • Centos 6.2, Cassandra 1.1.4 (DataStax distribution), three-nodes cluster.

    • Low

    Description

      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?

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jbellis Jonathan Ellis Assign to me
            azotcsit Aleksei Zotov
            Jonathan Ellis
            Vijay
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment