[ https://issues.apache.org/jira/browse/CASSANDRA-20647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reza Vaghefi updated CASSANDRA-20647: ------------------------------------- Description: The reported values for LiveDiskSpaceUsed and TotalDiskSpaceUsed metrics are incorrect for tables with SASI Index. The initial values seem to be correct, however, they get corrupted after each compaction and eventually drop to below zero (negative value). Restarting Cassandra resolves the issue. *Steps taken to reproduce the issue:* * Created a table with SASIIndex and inserted a few rows: * ** {code:java} CREATE KEYSPACE cycling WITH REPLICATION = { 'class' : 'NetworkTopologyStrategy', 'DC1' : 3 }; CREATE TABLE cycling.cyclist_name ( id UUID PRIMARY KEY, lastname text, firstname text ); CREATE CUSTOM INDEX fn_contains ON cycling.cyclist_name (firstname) USING 'org.apache.cassandra.index.sasi.SASIIndex' WITH OPTIONS = { 'mode': 'CONTAINS' }; INSERT INTO cycling.cyclist_name (id, lastname, firstname) VALUES (6ab09bec-e68e-48d9-a5f8-97e6fa4c9b40, 'Doe','John'); INSERT INTO cycling.cyclist_name (id, lastname, firstname) VALUES (6ab09bec-e68e-48d9-a5f8-97e6fa4c9b41, 'Doe','John'); INSERT INTO cycling.cyclist_name (id, lastname, firstname) VALUES (6ab09bec-e68e-48d9-a5f8-97e6fa4c9b42, 'Doe','John'); {code} * nodetool flush * was: The reported values for LiveDiskSpaceUsed and TotalDiskSpaceUsed metrics are incorrect for tables with SASI Index. The initial values seem to be correct, however, they get corrupted after each compaction and eventually drop to below zero (negative value). Restarting Cassandra resolves the issue. Steps taken to reproduce the issue: > DiskSpaceUsed metrics for tables with SASI Index is corrupt > ----------------------------------------------------------- > > Key: CASSANDRA-20647 > URL: https://issues.apache.org/jira/browse/CASSANDRA-20647 > Project: Apache Cassandra > Issue Type: Bug > Reporter: Reza Vaghefi > Priority: Normal > > The reported values for LiveDiskSpaceUsed and TotalDiskSpaceUsed metrics are > incorrect for tables with SASI Index. > The initial values seem to be correct, however, they get corrupted after each > compaction and eventually drop to below zero (negative value). > Restarting Cassandra resolves the issue. > *Steps taken to reproduce the issue:* > * Created a table with SASIIndex and inserted a few rows: > * > ** > {code:java} > CREATE KEYSPACE cycling WITH REPLICATION = { 'class' : > 'NetworkTopologyStrategy', 'DC1' : 3 }; > CREATE TABLE cycling.cyclist_name ( id UUID PRIMARY KEY, lastname text, > firstname text ); > CREATE CUSTOM INDEX fn_contains ON cycling.cyclist_name (firstname) USING > 'org.apache.cassandra.index.sasi.SASIIndex' WITH OPTIONS = { 'mode': > 'CONTAINS' }; > INSERT INTO cycling.cyclist_name (id, lastname, firstname) VALUES > (6ab09bec-e68e-48d9-a5f8-97e6fa4c9b40, 'Doe','John'); > INSERT INTO cycling.cyclist_name (id, lastname, firstname) VALUES > (6ab09bec-e68e-48d9-a5f8-97e6fa4c9b41, 'Doe','John'); > INSERT INTO cycling.cyclist_name (id, lastname, firstname) VALUES > (6ab09bec-e68e-48d9-a5f8-97e6fa4c9b42, 'Doe','John'); {code} > * nodetool flush > * -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org