mirror of https://github.com/apache/cassandra
When level compaction validates its table properties, it used the wrong default value for sstable_size_in_mb which allowed properties that would later be rejected at runtime
patch by David Capwell; reviewed by Ariel Weisberg for CASSANDRA-20570
This commit is contained in:
parent
386183fce1
commit
8d11662d6d
|
|
@ -1,4 +1,5 @@
|
|||
5.1
|
||||
* When level compaction validates its table properties, it used the wrong default value for sstable_size_in_mb which allowed properties that would later be rejected at runtime (CASSANDRA-20570)
|
||||
* Fix off-by-one bug in exponential backoff for repair retry config (CASSANDRA-21102)
|
||||
* Move training parameters for Zstd dictionary compression to CQL (CASSANDRA-21078)
|
||||
* Add configuration for sorted imports in source files (CASSANDRA-17925)
|
||||
|
|
|
|||
|
|
@ -594,7 +594,7 @@ public class LeveledCompactionStrategy extends AbstractCompactionStrategy
|
|||
int fanoutSize;
|
||||
|
||||
// Validate the sstable_size option
|
||||
String size = options.containsKey(SSTABLE_SIZE_OPTION) ? options.get(SSTABLE_SIZE_OPTION) : "1";
|
||||
String size = options.containsKey(SSTABLE_SIZE_OPTION) ? options.get(SSTABLE_SIZE_OPTION) : String.valueOf(DEFAULT_MAX_SSTABLE_SIZE_MIB);
|
||||
try
|
||||
{
|
||||
ssSize = Integer.parseInt(size);
|
||||
|
|
|
|||
Loading…
Reference in New Issue