-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Ingest-Manager] Fix windows installer during enroll #24343
Conversation
Pinging @elastic/agent (Team:Agent) |
Pinging @elastic/ingest-management (Team:Ingest Management) |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
/package |
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.
How does this force the re-extract everytime? I would have expected the extract operation to change the Check
function.
@blakerouse sorry for the confusion this is not forcing that just yet. this just lets unzip finish and waits for it before shutdown. the behavior is very weird. i want to do forced reextraction but this will be not that trivial as we need to check if there's some application already running/strarting (other checks i did not think of) before removing it. |
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.
True we do not need handle the case where it is already running. Maybe we should do an extraction per application (instead of per application type). Basically we run 2 filebeats, we can extract filebeat twice into 2 different directories.
Otherwise this change looks okay. PR description through me off, maybe that should be updated just for reference in the future.
[Ingest-Manager] Fix windows installer during enroll (elastic#24343)
[Ingest-Manager] Fix windows installer during enroll (elastic#24343)
Hi @EricDavisX We have performed smoke test using windows x64 agent on 7.12.0 Snapshot Kibana cloud environment. Build Details are as follows:
Testrun Link: Ingest Manager 7.12.0 Snapshot Smoke Test Plan Thanks |
…lastic#24389) [Ingest-Manager] Fix windows installer during enroll (elastic#24343)
What does this PR do?
after #24253 issue still occurred on some systems.
the problem really is with rename and sync after unzip which is skipped in case ctx is cancelled.
my first option was to make agent rename rootDir even if zip is not fully unpacked and sync directories all rootDir, installDir and temp directories.
this complicated code to the form I did not like, so many conditions there. but it was working 5/5
i went with a code-cleaner way (especially with change in mind @blakerouse suggested that we should remove it before start) and i let unzip finish, rename rootDir to correct tmp install path, sync paths and then let awaitable installer wait for whole installation to finish. we lose tiny amount of time, but cleaner code is worth small perf impact especially in this edge case scenario.
Why is it important?
Fixes #24317
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.