Skip to content

Improve interrupt handling in tests#111957

Merged
DaveCTurner merged 2 commits intoelastic:mainfrom
DaveCTurner:2024/08/18/test-InterruptedExceptions
Aug 20, 2024
Merged

Improve interrupt handling in tests#111957
DaveCTurner merged 2 commits intoelastic:mainfrom
DaveCTurner:2024/08/18/test-InterruptedExceptions

Conversation

@DaveCTurner
Copy link
Contributor

The test utilities waitUntil(), indexRandom(), startInParallel()
and runInParallel() all declare InterruptedException amongst the
checked exceptions they throw, but in practice there's nothing useful to
do with such an exception except to fail the test. With this change we
handle the interrupt within the utility methods instead, avoiding
exception-handling noise in callers.

The test utilities `waitUntil()`, `indexRandom()`, `startInParallel()`
and `runInParallel()` all declare `InterruptedException` amongst the
checked exceptions they throw, but in practice there's nothing useful to
do with such an exception except to fail the test. With this change we
handle the interrupt within the utility methods instead, avoiding
exception-handling noise in callers.
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Core/Infra/Core Core issues without another label v8.16.0 labels Aug 18, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Aug 18, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

Copy link
Contributor

@ldematte ldematte left a comment

Choose a reason for hiding this comment

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

LGTM

@DaveCTurner DaveCTurner merged commit 1047453 into elastic:main Aug 20, 2024
@DaveCTurner DaveCTurner deleted the 2024/08/18/test-InterruptedExceptions branch August 20, 2024 06:24
lkts pushed a commit to lkts/elasticsearch that referenced this pull request Aug 20, 2024
The test utilities `waitUntil()`, `indexRandom()`, `startInParallel()`
and `runInParallel()` all declare `InterruptedException` amongst the
checked exceptions they throw, but in practice there's nothing useful to
do with such an exception except to fail the test. With this change we
handle the interrupt within the utility methods instead, avoiding
exception-handling noise in callers.
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Aug 23, 2024
Following elastic#111957 these methods no longer throw an
`InterruptedException.
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Aug 27, 2024
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Aug 27, 2024
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this pull request Sep 4, 2024
The test utilities `waitUntil()`, `indexRandom()`, `startInParallel()`
and `runInParallel()` all declare `InterruptedException` amongst the
checked exceptions they throw, but in practice there's nothing useful to
do with such an exception except to fail the test. With this change we
handle the interrupt within the utility methods instead, avoiding
exception-handling noise in callers.
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this pull request Sep 4, 2024
davidkyle pushed a commit to davidkyle/elasticsearch that referenced this pull request Sep 5, 2024
The test utilities `waitUntil()`, `indexRandom()`, `startInParallel()`
and `runInParallel()` all declare `InterruptedException` amongst the
checked exceptions they throw, but in practice there's nothing useful to
do with such an exception except to fail the test. With this change we
handle the interrupt within the utility methods instead, avoiding
exception-handling noise in callers.
ywangd added a commit to ywangd/elasticsearch that referenced this pull request Sep 16, 2024
Larger number of indexing operations can take a while to complete on
slower machines for which we need to wait for longer.

Relates: elastic#111957
Resolves: elastic#112423
elasticsearchmachine pushed a commit that referenced this pull request Sep 17, 2024
Larger number of indexing operations can take a while to complete on
slower machines for which we need to wait for longer.

Relates: #111957 Resolves: #112423
ywangd added a commit to ywangd/elasticsearch that referenced this pull request Sep 17, 2024
…12908)

Larger number of indexing operations can take a while to complete on
slower machines for which we need to wait for longer.

Relates: elastic#111957 Resolves: elastic#112423
elasticsearchmachine pushed a commit that referenced this pull request Sep 17, 2024
…112978)

Larger number of indexing operations can take a while to complete on
slower machines for which we need to wait for longer.

Relates: #111957 Resolves: #112423
MattAlp added a commit to MattAlp/elasticsearch that referenced this pull request Jan 6, 2026
Merges the EsqlProject class into Project, eliminating unnecessary class
hierarchy after the QL merge. Key changes:

- Move lenient expressionsResolved() behavior from EsqlProject to Project,
  allowing UnsupportedAttribute to pass through projections unchanged
- Add ESQL_PROJECT_ENTRY to PlanWritables for backward compatibility when
  deserializing old "EsqlProject" plans from mixed-version clusters
- Add checkUnsupportedAttributeRenaming() to Verifier to ensure renaming
  UnsupportedAttribute via Alias is still blocked (this check now runs
  unconditionally, not gated by resolved() status)
- Update all instantiation sites to use Project instead of EsqlProject
- Update comments referencing EsqlProject

Closes elastic#111957
MattAlp added a commit to MattAlp/elasticsearch that referenced this pull request Jan 6, 2026
Merges the EsqlProject class into Project, eliminating unnecessary class
hierarchy after the QL merge. Key changes:

- Move lenient expressionsResolved() behavior from EsqlProject to Project,
  allowing UnsupportedAttribute to pass through projections unchanged
- Add ESQL_PROJECT_ENTRY to PlanWritables for backward compatibility when
  deserializing old "EsqlProject" plans from mixed-version clusters
- Add checkUnsupportedAttributeRenaming() to Verifier to ensure renaming
  UnsupportedAttribute via Alias is still blocked (this check now runs
  unconditionally, not gated by resolved() status)
- Update all instantiation sites to use Project instead of EsqlProject
- Update comments referencing EsqlProject

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

Labels

:Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team >test Issues or PRs that are addressing/adding tests v8.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants