You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brandon Williams (Jira)" <ji...@apache.org> on 2021/10/06 14:15:00 UTC

[jira] [Issue Comment Deleted] (CASSANDRA-16839) Truncation snapshots unnecessarily created on node startup

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

Brandon Williams updated CASSANDRA-16839:
-----------------------------------------
    Comment: was deleted

(was: This is caused by CASSANDRA-15776 truncating these tables via CQL, which does not have a mechanism for truncation without snapshotting.  Instead if we don't use CQL we can invoke ColumnFamilyStore.discardSSTables.


||Branch||CI||
|[4.0|https://github.com/driftx/cassandra/tree/CASSANDRA-16839-4.0]|[circle|https://app.circleci.com/pipelines/github/driftx/cassandra?branch=CASSANDRA-16839-4.0], [!https://ci-cassandra.apache.org/job/Cassandra-devbranch/1180/badge/icon!|https://ci-cassandra.apache.org/blue/organizations/jenkins/Cassandra-devbranch/detail/Cassandra-devbranch/1180/pipeline]|
|[trunk|https://github.com/driftx/cassandra/tree/CASSANDRA-16839-trunk]|[circle|https://app.circleci.com/pipelines/github/driftx/cassandra?branch=CASSANDRA-16839-trunk], [!https://ci-cassandra.apache.org/job/Cassandra-devbranch/1181/badge/icon!|https://ci-cassandra.apache.org/blue/organizations/jenkins/Cassandra-devbranch/detail/Cassandra-devbranch/1181/pipeline]|
)

> Truncation snapshots unnecessarily created on node startup
> ----------------------------------------------------------
>
>                 Key: CASSANDRA-16839
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16839
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tool/nodetool
>            Reporter: Paulo Motta
>            Assignee: Brandon Williams
>            Priority: Normal
>             Fix For: 4.0.x
>
>
> When testing cassandra 4.0 on ccm I noticed that everytime I restart a node, truncation snapshots are created for the tables {{system.table_estimates}} and {{system.size_estimates}}:
> {noformat}
> $ ccm create -n 1 test -s
> $ ccm node1 stop
> $ ccm node1 start
> $ ccm node1 stop
> $ ccm node1 start
> $ ccm node1 nodetool listsnapshots
> Snapshot Details:
> Snapshot name                           Keyspace name Column family name True size Size on disk
> truncated-1628599001857-table_estimates system        table_estimates    0 bytes   13 bytes
> truncated-1628599099560-table_estimates system        table_estimates    0 bytes   13 bytes
> truncated-1628599001736-size_estimates  system        size_estimates     0 bytes   13 bytes
> truncated-1628599057438-table_estimates system        table_estimates    6.16 KiB  6.19 KiB
> truncated-1628599099458-size_estimates  system        size_estimates     0 bytes   13 bytes
> truncated-1628599057340-size_estimates  system        size_estimates     5.73 KiB  5.76 KiB
> Total TrueDiskSpaceUsed: 0 bytes
> {noformat}
> Not sure if this is expected behavior, but feels like a bug to me.
> Reproduced on 4.0, not sure if it reproduces on lower versions.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org