Skip to content

Conversation

@jfreden
Copy link
Contributor

@jfreden jfreden commented Mar 20, 2025

This test is supposed to test a successful process of multiple reserved state chunks but the random chunk generation sometimes produced an empty list of chunks, so the processing failed (as expected). This caught a different error though, that I've corrected in this PR + fixed the test code.

@jfreden jfreden added >test Issues or PRs that are addressing/adding tests :Core/Infra/Core Core issues without another label labels Mar 20, 2025
@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team v9.1.0 labels Mar 20, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@jfreden jfreden requested a review from prdoyle March 20, 2025 14:52
Copy link
Member

@ywangd ywangd left a comment

Choose a reason for hiding this comment

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

LGTM

projectId,
namespace,
reservedStateChunks.getFirst().metadata().version(),
reservedStateChunks.isEmpty() ? null : reservedStateChunks.getFirst().metadata().version(),
Copy link
Member

Choose a reason for hiding this comment

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

I think we should use EMPTY_VERSION?

public static final Long EMPTY_VERSION = -1L; // use -1 as sentinel for empty metadata

@jfreden jfreden merged commit 14fdc28 into elastic:main Mar 24, 2025
14 of 17 checks passed
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
* Fix testProcessMultipleChunks
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 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants