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

Rollup: Skip cleanup if nodes too old #34657

Merged
merged 1 commit into from
Oct 25, 2018

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Oct 19, 2018

Skips the rollup cleanup at the end of every test if some of the nodes
in the test cluster have a version before rollup was released.

As a side effect of doing this, I move the "is x-pack installed" test
from on-demand to before the first test. This should result in less
requests in general and it makes is a little simpler to store the node
versions and whether or not any node has x-pack installed.

I expect other cleanup code will be able to use this version checking
infrastructure. In addition, I think the yml tests could also reuse it.
They have some fairly complex logic to look up the versions of nodes but
I don't believe it is required. Both of those will have to wait for a
follow up change.

Closes #34629

Skips the rollup cleanup at the end of every test if some of the nodes
in the test cluster have a version before rollup was released.

As a side effect of doing this, I move the "is x-pack installed" test
from on-demand to before the first test. This should result in less
requests in general and it makes is a little simpler to store the node
versions and whether or not any node has x-pack installed.

I expect other cleanup code will be able to use this version checking
infrastructure. In addition, I think the yml tests could also reuse it.
They have some fairly complex logic to look up the versions of nodes but
I don't believe it is required. Both of those will have to wait for a
follow up change.

Closes elastic#34629
@nik9000 nik9000 added >test Issues or PRs that are addressing/adding tests :Delivery/Build Build or test infrastructure v7.0.0 :StorageEngine/Rollup Turn fine-grained time-based data into coarser-grained data v6.5.0 labels Oct 19, 2018
@nik9000 nik9000 requested a review from talevy October 19, 2018 20:54
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

@nik9000 nik9000 removed the :StorageEngine/Rollup Turn fine-grained time-based data into coarser-grained data label Oct 19, 2018
@nik9000
Copy link
Member Author

nik9000 commented Oct 19, 2018

Note: I opened this against 6.x because that is where the actual problem occurs. I'll forward port it so master lines up once we approve it.

Copy link
Contributor

@talevy talevy left a comment

Choose a reason for hiding this comment

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

left a couple of minor comments, but LGTM

@nik9000
Copy link
Member Author

nik9000 commented Oct 19, 2018

@elasticmachine, retest this please

@nik9000
Copy link
Member Author

nik9000 commented Oct 25, 2018

I merged this to master, stripping out some of the BWC code that isn't useful there but keeping the version fetching.

nik9000 added a commit that referenced this pull request Oct 25, 2018
This is a forward port of a change made to clean up backwards
compatibility for the rollup cleanups. It makes the version of each node
available very early on in test execution. The 6.x version of the change
used those versions to control the cleanup backwards compatibility but
that isn't needed in this branch. But having the versions around *is*
useful. So this makes them available.

Closes #34629
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Oct 26, 2018
* master: (74 commits)
  XContent: Check for bad parsers (elastic#34561)
  Docs: Align prose with snippet (elastic#34839)
  document the search context is freed if the scroll is not extended (elastic#34739)
  Test: Lookup node versions on rest test start (elastic#34657)
  SQL: Return error with ORDER BY on non-grouped. (elastic#34855)
  Reduce channels in AbstractSimpleTransportTestCase (elastic#34863)
  [DOCS] Updates Elasticsearch monitoring tasks (elastic#34339)
  Check self references in metric agg after last doc collection (elastic#33593) (elastic#34001)
  [Docs] Add `indices.query.bool.max_clause_count` setting (elastic#34779)
  Add 6.6.0 version to master (elastic#34847)
  Test: ensure char[] doesn't being with prefix (elastic#34816)
  Remove static import from HLRC doc snippet (elastic#34834)
  Logging: server: clean up logging (elastic#34593)
  Logging: tests: clean up logging (elastic#34606)
  SQL: Fix edge case: `<field> IN (null)` (elastic#34802)
  [Test] Mute FullClusterRestartIT.testShrink() until test is fixed
  SQL: Introduce ODBC mode, similar to JDBC (elastic#34825)
  SQL: handle X-Pack or X-Pack SQL not being available in a more graceful way (elastic#34736)
  [Docs] Add explanation for code snippets line width (elastic#34796)
  CCR: Rename follow-task parameters and stats (elastic#34836)
  ...
kcm pushed a commit that referenced this pull request Oct 30, 2018
This is a forward port of a change made to clean up backwards
compatibility for the rollup cleanups. It makes the version of each node
available very early on in test execution. The 6.x version of the change
used those versions to control the cleanup backwards compatibility but
that isn't needed in this branch. But having the versions around *is*
useful. So this makes them available.

Closes #34629
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team >test Issues or PRs that are addressing/adding tests v6.6.0 v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants