Skip to content

Conversation

@martijnvg
Copy link
Member

@martijnvg martijnvg commented Mar 14, 2021

Backport of the testing related changes from #70314:

  • Older versions don't support component / composable index templates
    and/or data streams. Yet the test base class tries to remove objects
    after each test, which adds a significant number of lines to the
    log files (which slows the tests down). The ESRestTestCase will
    now check whether all nodes have a specific version and then decide
    whether data streams and component / composable index templates will
    be deleted.

  • Also ensured that the logstash-index-template and security-index-template
    aren't deleted between tests, these templates are builtin templates that
    ES will install if missing. So if tests remove these templates between tests
    then ES will add these template back almost immediately. These causes
    many log lines and a lot of cluster state updates, which slow tests down.

  • Also removed old debug log config that was enabled to investigate
    a build failure (CI failures due to indices not being cleaned up as expected #46091), but has been closed. However the debug logging
    added many lines log lines to the log files. Note this change wasn't part
    of Support specifying multiple templates names in delete component template api #70314.

Relates to #69973

Older versions don't support component / composable index templates
and/or data streams. Yet the test base class tries to remove objects
after each test, which adds a significant number of lines to the
log files (which slows the tests down). The ESRestTestCase will
now check whether all nodes have a specific version and then decide
whether data streams and component / composable index templates will
be deleted.

Also removed old debug log config that was enabled to investigate
a build failure (elastic#46091), but has been closed. However the debug logging
added many lines log lines to the log files.

Relates to elastic#69973
@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Mar 14, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

@martijnvg
Copy link
Member Author

Without this change, running locally: ./gradlew -p qa/mixed-cluster/ v6.8.15#mixedClusterTest, build fails because test suite timeout is reached. Running with this change, build succeeds completely.

Targeted this PR against 7.x, because the mixed clusters qa module times out a lot when running with 6.8.x nodes. This change should be forward ported to master and back ported to 7.12 and 7.11 branches.

@martijnvg
Copy link
Member Author

@elasticmachine run elasticsearch-ci/packaging-sample-unix

@martijnvg martijnvg added backport and removed >test Issues or PRs that are addressing/adding tests labels Mar 15, 2021
@martijnvg martijnvg merged commit f15c31f into elastic:7.x Mar 15, 2021
martijnvg added a commit to martijnvg/elasticsearch that referenced this pull request Mar 15, 2021
…astic#70361)

Backport of the testing related changes from elastic#70314:

Older versions don't support component / composable index templates
and/or data streams. Yet the test base class tries to remove objects
after each test, which adds a significant number of lines to the
log files (which slows the tests down). The ESRestTestCase will
now check whether all nodes have a specific version and then decide
whether data streams and component / composable index templates will
be deleted.

Also ensured that the logstash-index-template and security-index-template
aren't deleted between tests, these templates are builtin templates that
ES will install if missing. So if tests remove these templates between tests
then ES will add these template back almost immediately. These causes
many log lines and a lot of cluster state updates, which slow tests down.

Also removed old debug log config that was enabled to investigate
a build failure (elastic#46091), but has been closed. However the debug logging
added many lines log lines to the log files. Note this change wasn't part
of elastic#70314.

Relates to elastic#69973
martijnvg added a commit to martijnvg/elasticsearch that referenced this pull request Mar 15, 2021
…astic#70361)

Backport of the testing related changes from elastic#70314:

Older versions don't support component / composable index templates
and/or data streams. Yet the test base class tries to remove objects
after each test, which adds a significant number of lines to the
log files (which slows the tests down). The ESRestTestCase will
now check whether all nodes have a specific version and then decide
whether data streams and component / composable index templates will
be deleted.

Also ensured that the logstash-index-template and security-index-template
aren't deleted between tests, these templates are builtin templates that
ES will install if missing. So if tests remove these templates between tests
then ES will add these template back almost immediately. These causes
many log lines and a lot of cluster state updates, which slow tests down.

Also removed old debug log config that was enabled to investigate
a build failure (elastic#46091), but has been closed. However the debug logging
added many lines log lines to the log files. Note this change wasn't part
of elastic#70314.

Relates to elastic#69973
martijnvg added a commit that referenced this pull request Mar 15, 2021
…70364)

Backporting #70361 to 7.11 branch.

Backport of the testing related changes from #70314:

Older versions don't support component / composable index templates
and/or data streams. Yet the test base class tries to remove objects
after each test, which adds a significant number of lines to the
log files (which slows the tests down). The ESRestTestCase will
now check whether all nodes have a specific version and then decide
whether data streams and component / composable index templates will
be deleted.

Also ensured that the logstash-index-template and security-index-template
aren't deleted between tests, these templates are builtin templates that
ES will install if missing. So if tests remove these templates between tests
then ES will add these template back almost immediately. These causes
many log lines and a lot of cluster state updates, which slow tests down.

Also removed old debug log config that was enabled to investigate
a build failure (#46091), but has been closed. However the debug logging
added many lines log lines to the log files. Note this change wasn't part
of #70314.

Relates to #69973
martijnvg added a commit that referenced this pull request Mar 15, 2021
…0363)

Backport of #70361 to 7.12 branch.

Backport of the testing related changes from #70314:

Older versions don't support component / composable index templates
and/or data streams. Yet the test base class tries to remove objects
after each test, which adds a significant number of lines to the
log files (which slows the tests down). The ESRestTestCase will
now check whether all nodes have a specific version and then decide
whether data streams and component / composable index templates will
be deleted.

Also ensured that the logstash-index-template and security-index-template
aren't deleted between tests, these templates are builtin templates that
ES will install if missing. So if tests remove these templates between tests
then ES will add these template back almost immediately. These causes
many log lines and a lot of cluster state updates, which slow tests down.

Also removed old debug log config that was enabled to investigate
a build failure (#46091), but has been closed. However the debug logging
added many lines log lines to the log files. Note this change wasn't part
of #70314.

Relates to #69973
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants