Skip to content

Conversation

@ChrisHegarty
Copy link
Contributor

@ChrisHegarty ChrisHegarty commented Oct 9, 2023

This commit fixes the intermittent failure of BreakingBytesRefBuilderTests. The issue is that the test uses the BreakingBytesRefBuilder's internal BytesRef array length to determine whether to expect a circuit breaker exception or not. Where it should use the builders length (not the capacity, a.k.a the internal BytesRef array length).

The test failed intermittently about one in 10-20 runs before the change. The test passes successfully 100s of thousands of times with the fix.

closes #99649

@ChrisHegarty ChrisHegarty added >test Issues or PRs that are addressing/adding tests Team:QL (Deprecated) Meta label for query languages team :Analytics/ES|QL AKA ESQL labels Oct 9, 2023
@ChrisHegarty ChrisHegarty requested a review from nik9000 October 9, 2023 20:15
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-ql (Team:QL)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/elasticsearch-esql (:Query Languages/ES|QL)

@ChrisHegarty ChrisHegarty added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) auto-backport-and-merge v8.11.0 labels Oct 9, 2023
@nik9000
Copy link
Member

nik9000 commented Oct 9, 2023

Ah! It's when it guesses how big the oversize will be! That makes sense! Thanks!

Copy link
Member

@costin costin left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticsearchmachine elasticsearchmachine merged commit 6feb418 into elastic:main Oct 9, 2023
@ChrisHegarty ChrisHegarty deleted the test_fix branch October 9, 2023 20:57
ChrisHegarty added a commit to ChrisHegarty/elasticsearch that referenced this pull request Oct 9, 2023
This commit fixes the intermittent failure of
BreakingBytesRefBuilderTests. The issue is that the test uses the
BreakingBytesRefBuilder's internal BytesRef array length to determine
whether to expect a circuit breaker exception or not. Where it should
use the builders length (not the capacity, a.k.a the internal BytesRef
array length).

The test failed intermittently about one in 10-20 runs before the
change. The test passes successfully 100s of thousands of times with the
fix.

closes elastic#99649
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.11

elasticsearchmachine pushed a commit that referenced this pull request Oct 9, 2023
This commit fixes the intermittent failure of
BreakingBytesRefBuilderTests. The issue is that the test uses the
BreakingBytesRefBuilder's internal BytesRef array length to determine
whether to expect a circuit breaker exception or not. Where it should
use the builders length (not the capacity, a.k.a the internal BytesRef
array length).

The test failed intermittently about one in 10-20 runs before the
change. The test passes successfully 100s of thousands of times with the
fix.

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

Labels

:Analytics/ES|QL AKA ESQL auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) Team:QL (Deprecated) Meta label for query languages team >test Issues or PRs that are addressing/adding tests v8.11.0 v8.12.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] BreakingBytesRefBuilderTests testGrow failing

4 participants