mirror of https://github.com/apache/cassandra
Fix compression options validation
patch by slebresne; reviewed by iamaleksey for CASSANDRA-5066
This commit is contained in:
parent
5a6981eb66
commit
4885bfccf1
|
|
@ -7,7 +7,7 @@
|
|||
* Fall back to old describe_splits if d_s_ex is not available (CASSANDRA-4803)
|
||||
* Improve error reporting when streaming ranges fail (CASSANDRA-5009)
|
||||
* cqlsh: fix timestamp formatting on some platforms (CASSANDRA-5046)
|
||||
* Fix ALTER TABLE overriding compression options with defaults (CASSANDRA-4996)
|
||||
* Fix ALTER TABLE overriding compression options with defaults (CASSANDRA-4996, 5066)
|
||||
* Avoid error opening data file on startup (CASSANDRA-4984)
|
||||
* Fix wrong index_options in cli 'show schema' (CASSANDRA-5008)
|
||||
* Allow overriding number of available processor (CASSANDRA-4790)
|
||||
|
|
|
|||
|
|
@ -100,7 +100,11 @@ public class CompressionParameters
|
|||
private static ICompressor createCompressor(Class<? extends ICompressor> compressorClass, Map<String, String> compressionOptions) throws ConfigurationException
|
||||
{
|
||||
if (compressorClass == null)
|
||||
{
|
||||
if (!compressionOptions.isEmpty())
|
||||
throw new ConfigurationException("Unknown compression options (" + compressionOptions.keySet() + ") since no compression class found");
|
||||
return null;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue