-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Fleet] Repro backing index is overlaping with backing index #193503
Conversation
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
b544687
to
9cdc840
Compare
9cdc840
to
b2574a0
Compare
💔 Build FailedFailed CI StepsTest Failures
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
.send({ force: true }) | ||
.expect(200); | ||
|
||
// Simulate rollover on upgrade it should throw |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rollover is lazy on ugprade it's why I triggered the rollover in that test
@nchaulet what version of Elasticsearch are you using? |
@salvatore-campagna the latest SNAPSHOT but we also have SDH having the same issue with 8.12.2 |
So |
@salvatore-campagna But should this is be handled when doing the rollover that create the new index? when we rollover an existing tsdb datastream it handle that no? |
There are two types of rollover operations occurring here (happening as a result of installing a new package/integration version):
As a result, the data stream will contain at least three indices (though in your case, there are more). However, we are primarily concerned with the most recent three indices created:
When attempting the latest upgrade, you encounter a situation where For this reason, I recommend waiting for |
Could it be automatically handled during the rollover process? it seems to me it will be a better experience for the use. I can create an issue in ES for that improvments
One of the issue here is those upgrades/rollback come from automated processes in Fleet, and having to wait 4 hours is not really an ideal scenario |
I see and I understand this might be an issue. If you can create an issue for us we will see what we can do. |
Summary
Reproduction for the following error when upgrading an integration after a rollback
When the upgrade to TSDB for a datastream do not succeed and we rollback to a non TDSB version, the following upgrades are not working
Details on the failing scenario
metrics-no_tsdb_to_tsdb.test-default
without tsdb => this create a backing index 0001metrics-no_tsdb_to_tsdb.test-default
datastream to TSDB => this create a timeseries backing index 0002metrics-no_tsdb_to_tsdb.test-
and rollover without tsb => this create backing indices0003
,0004
without timeseriesmetrics-no_tsdb_to_tsdb.test-default
datastream to TSDB => this fail with@martijnvg your name seems associated to a lot of TSDB in elasticsearch, maybe you can help me understand (or redirect me to someone who can) the behaviour here, and if either there is a bug in how the upgrade is handled in elasticsearch, or if there is something in Fleet we can do to avoid that, thanks a lot