Skip to content

Instantly share code, notes, and snippets.

@amorton
Created July 7, 2011 03:28
Show Gist options
  • Save amorton/1068855 to your computer and use it in GitHub Desktop.
Save amorton/1068855 to your computer and use it in GitHub Desktop.
Logging Cassandra column pages for slice by Name
diff --git a/src/java/org/apache/cassandra/db/columniterator/SSTableNamesIterator.java b/src/java/org/apache/cassandra/db/columniterator/SSTableNamesIterator.java
index 6cbc64b..014ce2c 100644
--- a/src/java/org/apache/cassandra/db/columniterator/SSTableNamesIterator.java
+++ b/src/java/org/apache/cassandra/db/columniterator/SSTableNamesIterator.java
@@ -184,6 +184,7 @@ public class SSTableNamesIterator extends SimpleAbstractColumnIterator implement
}
}
}
+ logger.info("Column Page Count {}/{}", Integer.toString(indexList.size()), Integer.toString(ranges.size()));
}
public DecoratedKey getKey()
@amorton
Copy link
Author

amorton commented Jul 7, 2011

Outputs messages such as

INFO 13:37:21,841 Column Page Count 7628/70

When reading an SSTable to say how many column index entries the row has, and how many were used when searing for columns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment