-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What is the bug?
All requests with compression (tested: gzip, zstd) fail when ml-commons is installed with streaming. This breaks, among other things, the http_compress=True option in opensearchpy.
How can one reproduce the bug?
Steps to reproduce the behavior:
gradlew run -Dstreaming=true
Plugins:
integTest-0 arrow-flight-rpc 3.6.0-SNAPSHOT
integTest-0 opensearch-job-scheduler 3.6.0.0-SNAPSHOT
integTest-0 opensearch-ml 3.6.0.0-SNAPSHOT
integTest-0 transport-reactor-netty4 3.6.0-SNAPSHOT
$ echo '{"settings":{"number_of_shards":1}}' \
| gzip \
| curl -X PUT "localhost:9200/test_bug" -H "Content-Type: application/json" -H "Content-Encoding: gzip" --data-binary @- --silent \
| jq
{
"error": {
"root_cause": [
{
"type": "not_x_content_exception",
"reason": "Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"
}
],
"type": "not_x_content_exception",
"reason": "Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"
},
"status": 400
}What is the expected behavior?
{
"acknowledged": true,
"shards_acknowledged": true,
"index": "test_bug"
}What is your host/environment?
- OS: Linux, kernel 5.10
- Version: mainline
- Plugins: opensearch-ml & streaming plugins.
Do you have any screenshots?
N/A
Do you have any additional context?
N/A
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
On-deck