Skip to content

[Profiling] Add initial support for upgrades#97380

Merged
danielmitterdorfer merged 7 commits intoelastic:mainfrom
danielmitterdorfer:profiling-upgrades
Jul 6, 2023
Merged

[Profiling] Add initial support for upgrades#97380
danielmitterdorfer merged 7 commits intoelastic:mainfrom
danielmitterdorfer:profiling-upgrades

Conversation

@danielmitterdorfer
Copy link
Copy Markdown
Member

With this commit we add support to specify upgrade behavior per index (or data stream) that is managed by the profiling plugin:

  • Data streams and K/V indices will be rolled over: The prior write index will remain untouched and eventually be deleted according to the ILM policy.
  • Regular indices may either be ignored or deleted on upgrades.

With this commit we add support to specify upgrade behavior per index
(or data stream) that is managed by the profiling plugin:

* Data streams and K/V indices will be rolled over: The prior write
  index will remain untouched and eventually be deleted according to the
ILM policy.
* Regular indices may either be ignored or deleted on upgrades.
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v8.10.0 labels Jul 5, 2023
@danielmitterdorfer danielmitterdorfer added >enhancement :UniversalProfiling/Application Elastic Universal Profiling REST APIs and infrastructure and removed needs:triage Requires assignment of a team area label labels Jul 5, 2023
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @danielmitterdorfer, I've created a changelog YAML for you.

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/profiling (Team:Universal Profiling)

@danielmitterdorfer
Copy link
Copy Markdown
Member Author

The build scan shows:

:test:fixtures:krb5kdc-fixture:composeBuild FAILED
Building peppa
Service 'peppa' failed to build: The command '/bin/sh -c bash /fixture/src/main/resources/provision/installkdc.sh' returned a non-zero code: 100

This is definitely unrelated to this PR and may be transient so I'm retriggering the build. There are a couple of closed issues that are somewhat related but that problem seems new.

@elasticsearchmachine run elasticsearch-ci/part-2

new ActionListener<RolloverResponse>() {
@Override
public void onResponse(RolloverResponse response) {
if (response.isAcknowledged() == false) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just for readability: is it possible to move the logging code into a separate function, e.g. logResponseStatus(...) ? Same for rolloverIndex() in ProfilingIndexManager.

Copy link
Copy Markdown
Contributor

@rockdaboot rockdaboot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@danielmitterdorfer danielmitterdorfer merged commit 57d0b4d into elastic:main Jul 6, 2023
@danielmitterdorfer danielmitterdorfer deleted the profiling-upgrades branch July 6, 2023 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>enhancement :UniversalProfiling/Application Elastic Universal Profiling REST APIs and infrastructure v8.10.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants