- Newest
- Most votes
- Most comments
Hey,
Hope you're keeping well.
This is a mismatch between the AWS OpenSearch Service build metadata and the opensearch-java 3.3.0 client expectations. The AWS-managed build OpenSearch_3_3_R20251121 omits the distribution field in OpenSearchVersionInfo, which the newer client treats as required. For now the practical workaround is to downgrade your client to a version that doesn’t enforce that field, such as opensearch-java 2.12.x, or wait for a patched client release. To raise this formally, open a support case in the AWS console under Amazon OpenSearch Service and include your domain version, client version, and stack trace so the service team can coordinate with the OpenSearch project maintainers.
Thanks and regards,
Taz
answered a year ago
This is basically a compatibility bug. AWS’s latest OpenSearch build (OpenSearch_3_3_R20251121) doesn’t include a field called distribution in the version metadata, but the opensearch-java 3.3.0 client expects it. When the client tries to read it, it crashes with:
Missing required property 'OpenSearchVersionInfo.distribution'
you can reproduce it exactly the way you described: create a 3.3 R-build domain on AWS and connect with the 3.3.0 Java client.
You can use an older Java client like opensearch-java 2.12.x (it doesn’t check for the missing distribution field), or downgrade your AWS OpenSearch domain to version 3.2 (fully compatible with the 3.3.0 client), or just switch to the low-level REST client, which avoids the version-parsing logic entirely.
Until AWS updates their R-build or the Java client gets a patch, one of these workarounds is the only way around it.
use this link to check out the official documentation :
https://github.com/opensearch-project/opensearch-java
https://github.com/opensearch-project/opensearch-java/releases
https://docs.aws.amazon.com/opensearch-service/latest/developerguide/release-notes.html
https://opensearch.org/docs/latest/clients/java-rest-low-level/
https://docs.aws.amazon.com/opensearch-service/latest/developerguide/compatibility.html
answered a year ago
Yes, with org.opensearch.client:opensearch-java:2.12.0 I don't get this error. Any idea how I can open a ticket for this issue so that in next release it will be fixed?
answered a year ago

I have a basic account without support subscription. Can I raise a but without support subscription?