-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Failing ES Promotion: logstash pipeline list route add button links to the empty pipeline editor #86038
Comments
@jaymode, I see you took a pass at this here: #80405 The current issue we're running into is that a mapping update is being performed every time someone accesses the edit pipeline view. This update call is also being done by the current user. It doesn't seem like this is the desired behavior, or if it's still valid for 8.0, but I am having a hard time tracking someone down that can confirm. Do you have any thoughts? I am considering moving forward with #86045 to disable the mapping update call until someone from the Ingest team can address. |
@tylersmalley sorry for this, it slipped my mind when we made a ES change; I think this is due to elastic/elasticsearch#66190 @pugnascotia can you help here? I think there is a conflict between making the logstash system index managed by ES and the code in Kibana. I think we need to confirm everything is right in the ES template and then proceed with removing the mapping/template update code in Kibana since we are handling it in ES now. If you need anything from the Logstash side please reach out to @kaisecheng. |
The logstash plugin in Kibana is only adding the following mapping, when the
This property appears to be included in @pugnascotia's definition of the
So, when ES creates the new |
I do think that, going forwards, if Elasticsearch is managing a system index then it needs to be the only component managing them (and indeed ES now enforces this). @kobelb Can you elaborate on what you mean by "potentially unsafe"? If there's a gap between what ES is now doing and what needs to be done, I'd like to get that closed ASAP. It so happens that I hadn't backported elastic/elasticsearch#66190 to |
For sure. My fear is that there are existing |
From the linked implementation of the update in Kibana, it looks like there's already a call made to ensure the index exists before updating the mapping - could we predicate doing the mapping update on one of [the mapping doesn't already have |
@gwbrown we can do that. However, won't we still have an issue if the index was created a long time ago before system-indices? |
Hm, I suppose there's still the case of a cluster upgrading directly via FCR from 6.0.0-6.3.0 to 7.12.0, in which case the mapping update may still need to be made but the index would be registered as a system index. We haven't built the final infrastructure for automated mapping updates to system indices yet, but we might be able to use some existing infrastructure temporarily to pull that check/upgrade into Elasticsearch - what do you think, @pugnascotia? |
@gwbrown when you say "the final infrastructure for automated mapping updates", do you mean something other than what the |
Oh, I was thinking of the reindex infrastructure (i.e. for mapping changes that can't be applied as updates to an existing index). Whoops. If the infra you built will automatically update mappings, if we make sure that works, can we just rely on that and prevent Kibana from updating the mappings if ES version >=7.12.0? Having an index that originated in v6 shouldn't be a problem for updating the mapping. |
Sounds like what I've built is exactly what we need. The |
@gwbrown @pugnascotia I am not familiar with |
I was on PTO last week so late to this conversation. Indeed, I wrote the Kibana code for the |
Closed by #87056 |
Thanks @spalger 🙏 |
I guess we're doing this in 7.12 too? I'm not super concerned about the removal of this API in a minor as it's really only intended for internal use (I assume) but just wanted to raise a minor alert that this means we're removing functionality in a minor Kibana version. Backport from ES: elastic/elasticsearch#66510 |
Yes, I backported the ES change to 7.12 |
This failure is preventing the promotion of the current Elasticsearch nightly snapshot.
For more information on the Elasticsearch snapshot promotion process: https://www.elastic.co/guide/en/kibana/master/development-es-snapshots.html
This is being called from https://github.com/elastic/kibana/blob/master/x-pack/plugins/logstash/server/routes/upgrade/upgrade.ts#L28-L40 every time a user visits the edit pipeline page.
https://kibana-ci.elastic.co/job/elasticsearch+snapshots+verify/1911/execution/node/389/log/
The text was updated successfully, but these errors were encountered: