opensearch-project / OpenSearch

🔎 Open source distributed and RESTful search engine.
https://opensearch.org/docs/latest/opensearch/index/
Apache License 2.0
9.77k stars 1.82k forks source link

[BUG] API endpoints failing with illegal_argument_exception #5442

Open lpiob opened 1 year ago

lpiob commented 1 year ago

Describe the bug Ocassionaly, and without an established cause, following endpoints:

return 400 Bad Request with following error:

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Values less than -1 bytes are not supported: -9223372036854028697b"}],"type":"illegal_argument_exception","reason":"Values less than -1 bytes are not supported: -9223372036854028697b"},"status":400}

Other API methods - especially related to searching documents, or checking overall cluster health - work fine.

The negative value is not constant. Other values that we've encountered: -9223372036854704795b, -9223372036853398293b.

The error goes away after restarting the nodes, and sometimes the error goes away on it's own.

OpenSearch nodes do not log any information when such error is reported.

To Reproduce Reproduction steps - unknown.

Please advise how to debug further if the error returns.

Expected behavior More verbose errors.

Plugins opensearch-alerting opensearch-anomaly-detection opensearch-asynchronous-search opensearch-cross-cluster-replication opensearch-geospatial opensearch-index-management opensearch-job-scheduler opensearch-knn opensearch-ml opensearch-notifications opensearch-notifications-core opensearch-observability opensearch-performance-analyzer opensearch-reports-scheduler opensearch-sql

Host/Environment (please complete the following information):

Additional context Test requests and responses recorded in https://gist.github.com/lpiob/56d28fca8378bb94ead9a30893a5dfe8

bowenlan-amzn commented 6 months ago

4474 looks similar

d3vzer0 commented 5 months ago

Facing the same issue atm with 5 nodes on a vanilla (ie. non-k8s) deployment. Sometimes the issue just disappears by itself 🤔