Skip to content

Commit

Permalink
Merge branch 'cassandra-3.0' into cassandra-3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjirsa committed Feb 10, 2017
2 parents baa59cd + 4e669cf commit b221e8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Merged from 3.0:
for a table that's in system_schema.tables (CASSANDRA-13180)
Merged from 2.2:
* Use only one file pointer when creating commitlog segments (CASSANDRA-12539)
Merged from 2.1:
* Coalescing strategy can enter infinite loop (CASSANDRA-13159)

3.10
* Fix secondary index queries regression (CASSANDRA-13013)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private static boolean maybeSleep(int messages, long averageGap, long maxCoalesc
{
// only sleep if we can expect to double the number of messages we're sending in the time interval
long sleep = messages * averageGap;
if (sleep > maxCoalesceWindow)
if (sleep <= 0 || sleep > maxCoalesceWindow)
return false;

// assume we receive as many messages as we expect; apply the same logic to the future batch:
Expand Down

0 comments on commit b221e8e

Please sign in to comment.