cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sonny Heer <sonnyh...@gmail.com>
Subject Re: Cassandra paging, gathering stats
Date Mon, 22 Feb 2010 22:40:22 GMT
Is this a bug?


	        ColumnParent columnParent = new ColumnParent(cp, null);
	        SlicePredicate slicePredicate = new SlicePredicate();

	        // Get all columns
	        SliceRange sliceRange = new SliceRange(new byte[] {}, new
byte[] {}, false, Integer.MAX_VALUE);
	        slicePredicate.setSlice_range(sliceRange);

	        List<KeySlice> columns;
	
	        try {
				columns = client.get_range_slice(keySpaceStr, columnParent,
slicePredicate, "STU", "T", 1000000, ConsistencyLevel.ONE);


the client.get_range_slice has ~100 rows returned.  when i change the
count above 1000000 (or some # below int max) it works fine.   When I
change the value to Integer.MAX_VALUE it fails with the Java heap
space error.  I've tried upping the heap size to 1024 as well.  Even
though the total results returned is the same (~100) why would it not
work with int max?  Is something being built based on this count value
passed in?

Mime
View raw message