Repository navigation
chore: bump local OpenSearch to 3.9.1 to fix PPL on rolled-over span indices - #482
Merged
joshuali925 merged 1 commit intoOct 15, 2026
Conversation
…indices OpenSearch 3.9.0 ships opensearch-project/sql#5657, which made wildcard PPL/SQL queries throw UnsupportedOperationException when one index maps an empty object and a sibling index maps a leaf under the same path. After the first rollover of otel-v1-apm-span, events.attributes is an empty object in the new index, so every query on otel-v1-apm-span-* can fail, including Agent Traces. The fix (opensearch-project/sql#5791) was backported to 3.9 in opensearch-project/sql#5864 and is in the 3.9.1 staging image. OpenSearch Dashboards stays on 3.9.0. Signed-off-by: Kyle Hounslow <[email protected]>
kylehounslow
marked this pull request as ready for review
October 15, 2026 04:30
kylehounslow
requested review from
anirudha,
goyamegh,
joshuali925,
ps48 and
vamsimanohar
as code owners
October 15, 2026 04:30
anirudha
approved these changes
Oct 15, 2026
joshuali925
approved these changes
Oct 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Bump
OPENSEARCH_VERSIONin.envfrom3.9.0to3.9.1(staging registry). OpenSearch Dashboards stays on 3.9.0.Bug: on OpenSearch 3.9.0, PPL queries on
otel-v1-apm-span-*fail withUnsupportedOperationExceptiononce the span index has rolled over. Agent Traces shows "Unknown Error" and every span query in Discover fails the same way.Root cause: each new
otel-v1-apm-span-*index mapsevents.attributesas an empty object until a span with event attributes (for example, an exception) lands in it. When one index has it empty and a sibling has it populated, merging the mappings for a wildcard query writes into an immutable map. That regression came in with opensearch-project/sql#5657, which is in 3.9.0. The failure depends on the order the indices are merged, so it shows up after some rollovers and not others.Fix: opensearch-project/sql#5791, backported to 3.9 in opensearch-project/sql#5864. It's in the
3.9.1staging image (opensearch-sql-3.9.1.0.jar).Testing
source=repro-merge-* | fields nameper index order.otel-v1-apm-spanuntilsource=otel-v1-apm-span-* | stats count()failed. It failed atotel-v1-apm-span-000006.opensearchservice on 3.9.1 against the same data volume.Not affected: the Helm chart (OpenSearch chart 3.5.0) and the AWS installer (
OpenSearch_3.5), since both predate opensearch-project/sql#5657.3.9.1is a staging tag, like3.9.0in #453. SwitchOPENSEARCH_DOCKER_REPOback toopensearchprojectonce 3.9.1 is released.Issues Resolved
None filed.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.