Skip to content

[BUG] QAT specific settings should only applicable for QAT codecs only. #170

@sarthakaggarwal97

Description

@sarthakaggarwal97

What is the bug?

In the current implementation, the index.codec.qatmode is introduced but it does not validate if the setting can be applied to all codecs or not. Ideally, this setting should be applied only for QAT codecs.

How can one reproduce the bug?

Request:

curl --location --request PUT 'http://localhost:9200/index-10045' \
--header 'Content-Type: application/json' \
--data-raw '{
  "settings": {
    "index": {
      "codec": "zstd",
      "codec.qatmode": "auto"
    }
  }
}'

Response:

{
    "acknowledged": true,
    "shards_acknowledged": true,
    "index": "index-10045"
}

What is the expected behavior?

QAT specific settings should only be applied for QAT codecs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions