elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.67k stars 8.23k forks source link

[Fleet] Fix upgrade with a large number of stream backing indices #201272

Open nchaulet opened 9 hours ago

nchaulet commented 9 hours ago

Summary

It seems that upgrading a integration stream with a lot of backing indices could sometime fail because the response is too large.

We should avoid retrieving all backing indices (settings, and mappings) and only return the current one for the write index.

That PR does that.

Test

I added a unit test to verify we only call GET /<indices> with the current write index and not the datastream name

elasticmachine commented 9 hours ago

Pinging @elastic/fleet (Team:Fleet)

elasticmachine commented 7 hours ago

:green_heart: Build Succeeded

Metrics [docs]

✅ unchanged

cc @nchaulet