Skip to content
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

Simplify LocalExporter cleaner function to fix failing tests #83812

Merged
merged 4 commits into from
Feb 15, 2022

Conversation

jbaiera
Copy link
Member

@jbaiera jbaiera commented Feb 10, 2022

LocalExporter must be initialized fully before it can be used in the CleanerService to clean up indices. Nothing about its local state is needed for cleaning indices, and I don't think anything about its initialization of monitoring resources is needed in order to delete old indices either. Waiting for initialization can be time consuming, and thus causes some test failures in the cleaner service. By slimming down the required state of the cleaner listener this should clear up some of the test failures surrounding it.

Fixes #78862
Fixes #78737

@jbaiera jbaiera added >test Issues or PRs that are addressing/adding tests :Data Management/Monitoring v8.2.0 labels Feb 10, 2022
@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Feb 10, 2022
@elasticmachine
Copy link
Collaborator

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

@jbaiera
Copy link
Member Author

jbaiera commented Feb 11, 2022

@elasticmachine update branch

Copy link
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

@jbaiera
Copy link
Member Author

jbaiera commented Feb 15, 2022

@elasticmachine update branch

@jbaiera jbaiera merged commit d6aba55 into elastic:master Feb 15, 2022
@jbaiera jbaiera deleted the test-monitoring-local-cleaner branch February 15, 2022 19:10
@jbaiera jbaiera added backport pending v8.0.1 v8.1.1 auto-backport Automatically create backport pull requests when merged and removed auto-backport Automatically create backport pull requests when merged labels Feb 15, 2022
jbaiera added a commit to jbaiera/elasticsearch that referenced this pull request Feb 15, 2022
…#83812)

LocalExporter must be initialized fully before it can be used in the CleanerService to clean up 
indices. Nothing about its local state is needed for cleaning indices, and I don't think anything 
about its initialization of monitoring resources is needed in order to delete old indices either. 
Waiting for initialization can be time consuming, and thus causes some test failures in the 
cleaner service. By slimming down the required state of the cleaner listener this should clear 
up some of the test failures surrounding it.
jbaiera added a commit to jbaiera/elasticsearch that referenced this pull request Feb 15, 2022
…#83812)

LocalExporter must be initialized fully before it can be used in the CleanerService to clean up 
indices. Nothing about its local state is needed for cleaning indices, and I don't think anything 
about its initialization of monitoring resources is needed in order to delete old indices either. 
Waiting for initialization can be time consuming, and thus causes some test failures in the 
cleaner service. By slimming down the required state of the cleaner listener this should clear 
up some of the test failures surrounding it.
jbaiera added a commit that referenced this pull request Feb 16, 2022
…#83991)

LocalExporter must be initialized fully before it can be used in the CleanerService to clean up 
indices. Nothing about its local state is needed for cleaning indices, and I don't think anything 
about its initialization of monitoring resources is needed in order to delete old indices either. 
Waiting for initialization can be time consuming, and thus causes some test failures in the 
cleaner service. By slimming down the required state of the cleaner listener this should clear 
up some of the test failures surrounding it.
jbaiera added a commit that referenced this pull request Feb 16, 2022
…#83992)

LocalExporter must be initialized fully before it can be used in the CleanerService to clean up 
indices. Nothing about its local state is needed for cleaning indices, and I don't think anything 
about its initialization of monitoring resources is needed in order to delete old indices either. 
Waiting for initialization can be time consuming, and thus causes some test failures in the 
cleaner service. By slimming down the required state of the cleaner listener this should clear 
up some of the test failures surrounding it.
weizijun added a commit to weizijun/elasticsearch that referenced this pull request Feb 16, 2022
…ijun/elasticsearch into fix-none-tsdb-index-dimension-tests

* 'fix-none-tsdb-index-dimension-tests' of github.com:weizijun/elasticsearch: (37 commits)
  [docs] Mention JDK 17 in the Contributing docs (elastic#84018)
  Fix GeoIpDownloader startup during rolling upgrade (elastic#84000)
  Script: Fields API for Dense Vector (elastic#83550)
  Move InferenceConfigUpdate under VersionedNamedWriteable (elastic#84022)
  [ML] Fix license feature test cleanup (elastic#84020)
  Replace deprecated api in artifact transforms (elastic#84015)
  QL: Add leniency option to SQL CLI (elastic#83795)
  [Stack Monitoring] add kibana_stats version alias to -mb template (elastic#83930)
  Optimize spliterator for ImmutableOpenMap (elastic#83899)
  Feature usage actions for archive (elastic#83931)
  Use latch to speedup multi feature migration test (elastic#84007)
  Make action names available in NodeClient (elastic#83919)
  [DOCS] Re-add HTTP proxy setings from elastic#82737 (elastic#84001)
  Add CI matrix configuration for snapshot BWC versions (elastic#83990)
  Update YAML Rest tests to check for product header on all responses (elastic#83290)
  TSDB: Add time series aggs cancellation (elastic#83492)
  [DOCS] Fix percolate query headings (elastic#83988)
  [DOCS] Move tip for percolate query example (elastic#83972)
  Simplify LocalExporter cleaner function to fix failing tests (elastic#83812)
  [GCE Discovery] Correcly handle large zones with 500 or more instances (elastic#83785)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Monitoring Team:Data Management Meta label for data/management team >test Issues or PRs that are addressing/adding tests v8.0.1 v8.1.1 v8.2.0
Projects
None yet
4 participants