Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

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
You can’t perform that action at this time.