Skip to content

Reuse Info in lifecycle step#89419

Merged
elasticsearchmachine merged 5 commits intoelastic:mainfrom
mushao999:optimize/reuse_info_in_lifecycle_step
Aug 18, 2022
Merged

Reuse Info in lifecycle step#89419
elasticsearchmachine merged 5 commits intoelastic:mainfrom
mushao999:optimize/reuse_info_in_lifecycle_step

Conversation

@mushao999
Copy link
Copy Markdown
Contributor

We have a SingleMessageFiledInfo defined in org/elasticsearch/xpack/core/ilm/step/info to provide single message info for AsyncWaitStep and ClusterStateWaitStep.But there are still some steps like CheckNotDataStreamWriteIndexStep defining their own single message info.
This pr removes the duplicated info defination in these steps and use SingleMessageFiledInfo instand.

@elasticsearchmachine elasticsearchmachine added v8.5.0 external-contributor Pull request authored by a developer outside the Elasticsearch team needs:triage Requires assignment of a team area label labels Aug 17, 2022
@nik9000 nik9000 added :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. team-discuss and removed needs:triage Requires assignment of a team area label labels Aug 17, 2022
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@elasticsearchmachine elasticsearchmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Aug 17, 2022
@dakrone dakrone self-assigned this Aug 17, 2022
@dakrone dakrone self-requested a review August 17, 2022 18:58
Copy link
Copy Markdown
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

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

LGTM, I saw one typo in the changelog

@dakrone
Copy link
Copy Markdown
Member

dakrone commented Aug 17, 2022

@elasticmachine ok to test

@dakrone dakrone changed the title Reuse Info in lifecycel step Reuse Info in lifecycle step Aug 17, 2022
Copy link
Copy Markdown
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

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

It appears that this also needs test changes (see the CI failures for details), as a lot of them reference the inner Info classes, @mushao999 can you adjust this accordingly?

mushao999 and others added 2 commits August 18, 2022 06:34
Co-authored-by: Lee Hinman <dakrone@users.noreply.github.com>
@dakrone
Copy link
Copy Markdown
Member

dakrone commented Aug 18, 2022

@elasticmachine update branch

@dakrone dakrone added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Aug 18, 2022
@elasticsearchmachine elasticsearchmachine merged commit 22e1150 into elastic:main Aug 18, 2022
weizijun added a commit to weizijun/elasticsearch that referenced this pull request Aug 19, 2022
* upstream/main: (265 commits)
  Disable openid connect tests due to missing fixture (elastic#89478)
  Add periodic job for single processor node testing
  Updates to changelog processing after docs redesign (elastic#89463)
  Better support for multi cluster for run task (elastic#89442)
  Mute failing tests (elastic#89465)
  [ML] Performance improvements related to ECS Grok pattern usage (elastic#89424)
  Add source fallback support for date and date_nanos mapped types (elastic#89440)
  Reuse Info in lifecycle step (elastic#89419)
  feature: support metrics for multi value fields (elastic#88818)
  Upgrade OpenTelemetry API and remove workaround (elastic#89438)
  Remove LegacyClusterTaskResultActionListener (elastic#89459)
  Add YAML spec docs about matching errors (elastic#89370)
  Remove redundant cluster upgrade tests for auth tokens (elastic#89417)
  Return 400 error for GetUserPrivileges call with API keys (elastic#89333)
  User Profile - Detailed errors in hasPrivileges response (elastic#89224)
  Rollover min_* conditions docs and highlight (elastic#89434)
  REST tests for percentiles_bucket agg (elastic#88029)
  REST tests for cumulative pipeline aggs (elastic#88966)
  Clean-up file watcher keys. (elastic#89429)
  fix a typo in Security.java (elastic#89248)
  ...

# Conflicts:
#	server/src/main/java/org/elasticsearch/index/mapper/NumberFieldMapper.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. >enhancement external-contributor Pull request authored by a developer outside the Elasticsearch team Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v8.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants