-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
TSDB: Facing issue while reindexing a TSDB enabled data stream #98157
Comments
Pinging @elastic/es-analytics-geo (Team:Analytics) |
We need settings and templates applied to involved indices and data streams. I can guess a possible reason for the failure here and my guess will also explain why I am asking you to provide settings and templates. Consider that given the information I have right now I might be wrong. Applying settings on data streams and their indices is done using templates which normally match indices by means of a pattern. I guess here, due to the naming of the indices (temp_index), templates do not apply and settings are not applied as a consequence. For this reason I suspect temp_index is missing all tsdb specific settings, including the routing path fields. One of the settings required for a tsdb index is the routing path (routing path fields are a subset of dimension fields). As a side note, if my guess is correct, a possible workaround would be to get the settings from the original index and apply them manually to temp_index after reindexing is complete but before indexing data into the destination data stream. |
Here the settings applied to the
|
We need to check if they are applied to temp_index. Could you please also provide me with the settings on the temp_index after reindexing into temp_index is complete? |
Yes correct. Those settings are not being applied to the
|
I think you can try manually applying the missing settings to |
If I try to update the setting for the
then it throws the following error
|
Yes, some of the settings are valid only when the index is created. Maybe you can try manually creating the destination index before reindexing and applying all the settings at creation time. |
I didn't notice before that you are manually deleting the data stream and the template...Why are you doing that? As you can see here: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html
|
Actually, I can give you an overview of the issue. The problem here is the a field
Thanks for this I am able to apply the settings to the |
Yes you are right you need to have those settings applied to the data stream indices. I would say that applying those to |
I realized now that you might need to create the data stream index manually including all the settings at creation time, paying attention to the I know this might be a bit tedious to do manually...but we do not have a better way...at least at the moment. |
@salvatore-campagna / @martijnvg , presently as many as 10 integrations need to have the steps as part of the documentation. Considering the large scope, it is possible to have the steps documented as part of ElasticSearch documentation. Once this documentation is available, we can have the incorrect information removed from the Integration readme and instead provide a link to the documentation. Can this be taken up in the upcoming release? |
@aliabbas-elastic , can you follow the steps mentioned in the issue and following them the TSDB re-indexing could be performed? |
Sure @agithomas I ll have a look. Thanks !! |
Tested the reindexing steps on TSDB enabled integrations and they are resolving the conflicts. |
Elastic Stack version :- 8.8.0
I am trying to reindex a TSDB enabled data stream (
server
data stream ofCouchDB
) data but I am facing an error at the last step of reindexing. It seems like while reindexing, my existing settings of a TSDB enabled index are not applied on the destination index.Step 1 Firstly, I am storing my existing data into a
temp_index
using the Reindex API.Step 2 Now I need to delete the data stream and it's index templates so that after upgrading the package with new mappings I can reinstall my integration and get those new templates
Step 3 After installing the new version of the integration and upgrading the integration policies, I am running the last step of reindexing API.
At this step, I am facing an error as below.
Let me know what is the solution for this.
The text was updated successfully, but these errors were encountered: