Fix potential ClassCastException in HintedHandoffManager

patch by slebresne; reviewed by benedict for CASSANDRA-7284
This commit is contained in:
Sylvain Lebresne 2014-05-22 11:51:32 +02:00
parent 0fdf2ddbf0
commit 6127f85670
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@
* Add validate method to CollectionType (CASSANDRA-7208)
* New serialization format for UDT values (CASSANDRA-7209, CASSANDRA-7261)
* Fix nodetool netstats (CASSANDRA-7270)
* Fix potential ClassCastException in HintedHandoffManager (CASSANDRA-7284)
Merged from 2.0:
* Always reallocate buffers in HSHA (CASSANDRA-6285)
* (Hadoop) support authentication in CqlRecordReader (CASSANDRA-7221)

View File

@ -264,7 +264,7 @@ public class HintedHandOffManager implements HintedHandOffManagerMBean
{
// done if no hints found or the start column (same as last column processed in previous iteration) is the only one
return hintColumnFamily == null
|| (hintColumnFamily.getSortedColumns().size() == 1 && hintColumnFamily.getColumn((CellName)startColumn) != null);
|| (!startColumn.isEmpty() && hintColumnFamily.getSortedColumns().size() == 1 && hintColumnFamily.getColumn((CellName)startColumn) != null);
}
private int waitForSchemaAgreement(InetAddress endpoint) throws TimeoutException