Skip to content

Move assertion in ES85BloomFilterPostingsFormat to fix test#90150

Merged
original-brownbear merged 4 commits intoelastic:mainfrom
original-brownbear:90144
Sep 21, 2022
Merged

Move assertion in ES85BloomFilterPostingsFormat to fix test#90150
original-brownbear merged 4 commits intoelastic:mainfrom
original-brownbear:90144

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

This assertion is failing a corruption test in some corner cases because the corruption is causing a bloom filter to be read that trips the assertion. If we just assert in a separate loop after checking the checksum it fixes the test issue because the checksum check is tripped before the assertion. Also, this technically makes the assertion more correct since we could legitimately run into corruption here so it should only hold after verifying the checksum anyway.

closes #90144

This assertion is failing a corruption test in some corner cases because
the corruption is causing a bloom filter to be read that trips the
assertion. If we just assert in a separate loop after checking the
checksum it fixes the test issue because the checksum check is tripped
before the assertion. Also, this technically makes the assertion more
correct since we could legitimately run into corruption here so it
should only hold after verifying the checksum anyway.

closes #90144
@original-brownbear original-brownbear added >test Issues or PRs that are addressing/adding tests :Distributed/Engine Anything around managing Lucene and the Translog in an open shard. v8.5.0 labels Sep 19, 2022
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Meta label for distributed team. label Sep 19, 2022
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@original-brownbear
Copy link
Copy Markdown
Contributor Author

Jenkins run elasticsearch-ci/part-1
Jenkins run elasticsearch-ci/packaging-tests-windows-sample

Copy link
Copy Markdown
Member

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

LGTM, one nit.

…/ES85BloomFilterPostingsFormat.java

Co-authored-by: David Turner <david.turner@elastic.co>
@original-brownbear
Copy link
Copy Markdown
Contributor Author

@elasticsearchmachine update branch

@original-brownbear
Copy link
Copy Markdown
Contributor Author

Jenkins update branch

@original-brownbear
Copy link
Copy Markdown
Contributor Author

@elasticmachine update branch

@original-brownbear
Copy link
Copy Markdown
Contributor Author

Jenkins run elasticsearch-ci/bwc

@original-brownbear
Copy link
Copy Markdown
Contributor Author

Jenkins run elasticsearch-ci/bwc please

@original-brownbear original-brownbear merged commit 30d3a40 into elastic:main Sep 21, 2022
@original-brownbear original-brownbear deleted the 90144 branch September 21, 2022 12:00
weizijun added a commit to weizijun/elasticsearch that referenced this pull request Sep 22, 2022
* main: (186 commits)
  [DOCS] Add 8.5 release notes and fix links (elastic#90201)
  Mute DownsampleActionSingleNodeTests.testCannotRollupWhileOtherRollupInProgress (elastic#90198)
  Bump to version 8.6.0
  Increase the minimum size of the management pool to 2 (elastic#90193)
  Speed `getIntLE` from `BytesReference` (elastic#90147)
  Restrict nodes for testClusterPrimariesActive1 (elastic#90191)
  Fix bug with `BigIntArray` serialization (elastic#90142)
  Synthetic _source: test _source filtering (elastic#90138)
  Modernize cardinality agg tests (elastic#90114)
  Mute failing test (elastic#90186)
  Move assertion in ES85BloomFilterPostingsFormat to fix test (elastic#90150)
  Restrict nodes for testClusterPrimariesActive2 (elastic#90184)
  Batch index delete cluster state updates (elastic#90033)
  Register stable plugins in ActionModule (elastic#90067)
  Mute failing test (elastic#90180)
  [HealthAPI] Disk: Use _ for diagnosis id (elastic#90179)
  [HealtAPI] Disk: use shorter help URLs (elastic#90178)
  Fixing disk health indicator unit tests (elastic#90175)
  Enable the health node and the disk health indicator elastic#84811 (elastic#90085)
  Add missing Disk Indicator health api IDs (elastic#90174)
  ...
weizijun added a commit to weizijun/elasticsearch that referenced this pull request Sep 22, 2022
* main: (121 commits)
  [DOCS] Add 8.5 release notes and fix links (elastic#90201)
  Mute DownsampleActionSingleNodeTests.testCannotRollupWhileOtherRollupInProgress (elastic#90198)
  Bump to version 8.6.0
  Increase the minimum size of the management pool to 2 (elastic#90193)
  Speed `getIntLE` from `BytesReference` (elastic#90147)
  Restrict nodes for testClusterPrimariesActive1 (elastic#90191)
  Fix bug with `BigIntArray` serialization (elastic#90142)
  Synthetic _source: test _source filtering (elastic#90138)
  Modernize cardinality agg tests (elastic#90114)
  Mute failing test (elastic#90186)
  Move assertion in ES85BloomFilterPostingsFormat to fix test (elastic#90150)
  Restrict nodes for testClusterPrimariesActive2 (elastic#90184)
  Batch index delete cluster state updates (elastic#90033)
  Register stable plugins in ActionModule (elastic#90067)
  Mute failing test (elastic#90180)
  [HealthAPI] Disk: Use _ for diagnosis id (elastic#90179)
  [HealtAPI] Disk: use shorter help URLs (elastic#90178)
  Fixing disk health indicator unit tests (elastic#90175)
  Enable the health node and the disk health indicator elastic#84811 (elastic#90085)
  Add missing Disk Indicator health api IDs (elastic#90174)
  ...
@dnhatn
Copy link
Copy Markdown
Member

dnhatn commented Sep 27, 2022

Thanks Armin!

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

Labels

:Distributed/Engine Anything around managing Lucene and the Translog in an open shard. Team:Distributed Meta label for distributed team. >test Issues or PRs that are addressing/adding tests v8.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] IndexShardTests testIndexCheckOnStartup failure: AssertionError

5 participants