-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] ISM index rollover actions fail because of missing setting for otel-v1-apm-span-* indices #3506
Comments
@JannikBrand , Thank you for reporting this issue. We have had some significant changes to the Data Prepper code for managing indexes. It appears that they introduced a regression. Would you able to contribute toward a PR on this? It may be good to start by creating an integration test in OpenSearchIT which reproduces this issue. |
Indices require the rollover_alias ISM setting otherwise rollover actions by an ISM policy (raw-span-policy) are failing. Reference: https://opensearch.org/docs/2.11/im-plugin/ism/error-prevention/resolutions/#the-rollover-policy-misses-rollover_alias-index-setting Issue: opensearch-project#3506 Signed-off-by: Jannik Brand <jannik.brand@sap.com>
Indices require the rollover_alias ISM setting otherwise rollover actions by an ISM policy (raw-span-policy) are failing. Reference: https://opensearch.org/docs/2.11/im-plugin/ism/error-prevention/resolutions/#the-rollover-policy-misses-rollover_alias-index-setting Issue: opensearch-project#3506 Signed-off-by: Jannik Brand <jannik.brand@sap.com>
Hi @dlvenable, I can provide a PR, however I am not immediately able to work on it. I will have a look in the integration tests, because to reproduce it we would need a rollover action performed by ISM policy. A manual rollover command will not do it. |
@JannikBrand , Thank you for the PR. I was working to try to reproduce this yesterday and been unable to reproduce it. I tested this against the current Data Prepper on main (unreleased) along with the latest published OpenSearch version. I changed one file which was to update the rollover time to 2 minutes. In this setup the indexes were able to rollover without any issue. I also tried it on Data Prepper 2.3.2 and OpenSearch 1.13.2 as you reported above. Because I can't make changes to this version, I made a manual change to update the index after the fact as you suggested. Again, I'm seeing the rollover complete successfully. Data Prepper does set the Line 309 in 73a80a1
And here you can see the constant we use: Line 23 in 48d8bc3
Indeed, I can confirm the settings.
And the index has them as expected.
And after a rollover:
|
@JannikBrand , I have been able to reproduce this issue by setting |
…the OpenSearch sink. This resolves opensearch-project#3506. Signed-off-by: David Venable <dlv@amazon.com>
@dlvenable, thanks for looking into this! |
…the OpenSearch sink. This resolves opensearch-project#3506. Signed-off-by: David Venable <dlv@amazon.com>
I'd like to update Data Prepper to detect the OpenSearch version and then decide which setting to use. This came up in a discussion in another PR: I'm not sure if setting both will have an impact or not on how ISM works. |
Correctly support custom properties in composable index templates in the OpenSearch sink. This resolves #3506. Signed-off-by: David Venable <dlv@amazon.com>
Describe the bug
In the Trace Analytics OpenSearch setup, index rollovers for the
otel-v1-apm-span-*
indices are not working with Data Prepper's official index template.To Reproduce
otel-v1-apm-span-000001
index and an ISM policyraw-span-policy
which is targeting those kind of indices."message": "Missing rollover_alias index setting [index=otel-v1-apm-span-000001]"
and after the retry operations were performed the Job Status will also be "failed". (In order to test this within multiple minutes you can manually change theraw-span-policy
to perform the rollover after e.g. 3 minutes. Do not forget that policies don't get applied to existing indices, so you would either need to delete theotel-v1-apm-span-000001
index and restart Data Prepper or apply this policy to the existing index.)Expected behavior
Rollover actions from the ISM policy should not fail. According to this OpenSearch documentation the error message is clear and you need to add the
"plugins.index_state_management.rollover_alias": "otel-v1-apm-span"
index setting to theotel-v1-apm-span-index-template
. I tested this for our setup and this solved the problem.I know that the rollover actions worked in previous setups (older Data Prepper and OpenSearch versions) even though this index setting was not set.I could not figure out the reason so far. Also, I would assume that this is a problem also for newer Data Prepper / OpenSearch versions (compared to our setup) because I do not see that this index setting is configured somewhere.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: