Skip to content

Conversation

@martijnvg
Copy link
Member

Ensure ES87TSDBDocValuesFormat is used in ES87TSDBDocValuesFormatTests's tests.

Ensure `ES87TSDBDocValuesFormat` is used in `ES87TSDBDocValuesFormatTests`'s tests.
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@martijnvg
Copy link
Member Author

@elasticmachine update branch

Copy link
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

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

I think these tests are already using tsdb code because BaseIndexFileFormatTestCase overrides the default codec. This change looks good.

@martijnvg
Copy link
Member Author

I think these tests are already using tsdb code because BaseIndexFileFormatTestCase overrides the default codec. This change looks good.

The tests that are inherited do use the tsdb doc values codec, but the tests defined in ES87TSDBDocValuesFormatTests don't use it. Because they define their own index writer and index writer config.

@martijnvg
Copy link
Member Author

The test base class sets the codec as default codec: https://github.com/apache/lucene/blob/b59a357e58611b86e4cc1643794e05dd17d71b08/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseIndexFileFormatTestCase.java#L220

This change doesn't change the codec being used, but will make it more clearer.

@martijnvg martijnvg added the auto-backport Automatically create backport pull requests when merged label Mar 21, 2025
@martijnvg martijnvg merged commit adf1839 into elastic:main Mar 21, 2025
17 checks passed
martijnvg added a commit to martijnvg/elasticsearch that referenced this pull request Mar 21, 2025
…sts (elastic#125420)

Ensure `ES87TSDBDocValuesFormat` is used in `ES87TSDBDocValuesFormatTests`'s tests.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.18
8.x
9.0

martijnvg added a commit to martijnvg/elasticsearch that referenced this pull request Mar 21, 2025
…sts (elastic#125420)

Ensure `ES87TSDBDocValuesFormat` is used in `ES87TSDBDocValuesFormatTests`'s tests.
martijnvg added a commit to martijnvg/elasticsearch that referenced this pull request Mar 21, 2025
…sts (elastic#125420)

Ensure `ES87TSDBDocValuesFormat` is used in `ES87TSDBDocValuesFormatTests`'s tests.
elasticsearchmachine pushed a commit that referenced this pull request Mar 21, 2025
…sts (#125420) (#125435)

Ensure `ES87TSDBDocValuesFormat` is used in `ES87TSDBDocValuesFormatTests`'s tests.
elasticsearchmachine pushed a commit that referenced this pull request Mar 21, 2025
…sts (#125420) (#125434)

Ensure `ES87TSDBDocValuesFormat` is used in `ES87TSDBDocValuesFormatTests`'s tests.
elasticsearchmachine pushed a commit that referenced this pull request Mar 21, 2025
…sts (#125420) (#125433)

Ensure `ES87TSDBDocValuesFormat` is used in `ES87TSDBDocValuesFormatTests`'s tests.
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
…sts (elastic#125420)

Ensure `ES87TSDBDocValuesFormat` is used in `ES87TSDBDocValuesFormatTests`'s tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :StorageEngine/Codec Team:StorageEngine >test Issues or PRs that are addressing/adding tests v8.18.1 v8.19.0 v9.0.1 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants