mirror of https://github.com/apache/cassandra
Fix possible assertion triggered in SliceFromReadCommand
patch by slebresne; reviewed by jbellis for CASSANDRA-5284
This commit is contained in:
parent
3b98e63ddb
commit
05709f74ed
|
|
@ -1,6 +1,7 @@
|
||||||
1.1.11
|
1.1.11
|
||||||
* cli: Add JMX authentication support (CASSANDRA-5080)
|
* cli: Add JMX authentication support (CASSANDRA-5080)
|
||||||
* nodetool: ability to repair specific range (CASSANDRA-5280)
|
* nodetool: ability to repair specific range (CASSANDRA-5280)
|
||||||
|
* Fix possible assertion triggered in SliceFromReadCommand (CASSANDRA-5284)
|
||||||
|
|
||||||
|
|
||||||
1.1.10
|
1.1.10
|
||||||
|
|
|
||||||
|
|
@ -75,10 +75,9 @@ public class SliceFromReadCommand extends ReadCommand
|
||||||
int maxLiveColumns = handler.getMaxLiveColumns();
|
int maxLiveColumns = handler.getMaxLiveColumns();
|
||||||
int liveColumnsInRow = row != null ? row.getLiveColumnCount() : 0;
|
int liveColumnsInRow = row != null ? row.getLiveColumnCount() : 0;
|
||||||
|
|
||||||
assert maxLiveColumns <= count;
|
|
||||||
// We generate a retry if at least one node reply with count live columns but after merge we have less
|
// We generate a retry if at least one node reply with count live columns but after merge we have less
|
||||||
// than the total number of column we are interested in (which may be < count on a retry)
|
// than the total number of column we are interested in (which may be < count on a retry)
|
||||||
if ((maxLiveColumns == count) && (liveColumnsInRow < getOriginalRequestedCount()))
|
if ((maxLiveColumns >= count) && (liveColumnsInRow < getOriginalRequestedCount()))
|
||||||
{
|
{
|
||||||
// We asked t (= count) live columns and got l (=liveColumnsInRow) ones.
|
// We asked t (= count) live columns and got l (=liveColumnsInRow) ones.
|
||||||
// From that, we can estimate that on this row, for x requested
|
// From that, we can estimate that on this row, for x requested
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue