[ 
https://issues.apache.org/jira/browse/CASSANDRA-15296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dinesh Joshi updated CASSANDRA-15296:
-------------------------------------
       Complexity: Low Hanging Fruit
    Discovered By: User Report
        Reviewers: Dinesh Joshi
         Severity: Low
      Description: 
The DEFAULT_COMPRESSION_LEVEL for ZstdCompressor is set to 3, but its range for 
compression_level is indicated to be between -131072 and 2.  The default value 
is outside the range. Is it by design or a bug?

{code:java}

- ``compression_level`` is only applicable for ``ZstdCompressor`` and accepts 
values between ``-131072`` and ``2``.

// Compressor Defaults
    public static final int DEFAULT_COMPRESSION_LEVEL = 3;

{code}

https://github.com/apache/cassandra/commit/dccf53061a61e7c632669c60cd94626e405518e9

  was:

The DEFAULT_COMPRESSION_LEVEL for ZstdCompressor is set to 3, but its range for 
compression_level is indicated to be between -131072 and 2.  The default value 
is outside the range. Is it by design or a bug?

{code:java}

- ``compression_level`` is only applicable for ``ZstdCompressor`` and accepts 
values between ``-131072`` and ``2``.

// Compressor Defaults
    public static final int DEFAULT_COMPRESSION_LEVEL = 3;

{code}

https://github.com/apache/cassandra/commit/dccf53061a61e7c632669c60cd94626e405518e9


> ZstdCompressor compression_level setting
> ----------------------------------------
>
>                 Key: CASSANDRA-15296
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15296
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Dependencies, Feature/Compression
>            Reporter: DeepakVohra
>            Assignee: Romain Hardouin
>            Priority: Low
>         Attachments: 15296-trunk.txt
>
>
> The DEFAULT_COMPRESSION_LEVEL for ZstdCompressor is set to 3, but its range 
> for compression_level is indicated to be between -131072 and 2.  The default 
> value is outside the range. Is it by design or a bug?
> {code:java}
> - ``compression_level`` is only applicable for ``ZstdCompressor`` and accepts 
> values between ``-131072`` and ``2``.
> // Compressor Defaults
>     public static final int DEFAULT_COMPRESSION_LEVEL = 3;
> {code}
> https://github.com/apache/cassandra/commit/dccf53061a61e7c632669c60cd94626e405518e9



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to