Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,6 @@ tests:
- class: org.elasticsearch.index.engine.ThreadPoolMergeSchedulerTests
method: testSchedulerCloseWaitsForRunningMerge
issue: https://github.com/elastic/elasticsearch/issues/125236
- class: org.elasticsearch.reservedstate.service.ReservedClusterStateServiceTests
method: testProcessMultipleChunks
issue: https://github.com/elastic/elasticsearch/issues/125305

# Examples:
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ public void process(
ErrorState errorState = new ErrorState(
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

versionCheck,
e,
ReservedStateErrorMetadata.ErrorKind.PARSING
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public void testProcessMultipleChunks() throws Exception {
AtomicReference<Exception> exceptionRef = new AtomicReference<>();
List<ReservedStateChunk> chunks = new ArrayList<>();

String[] randomStateKeys = generateRandomStringArray(randomIntBetween(5, 10), randomIntBetween(10, 15), false);
String[] randomStateKeys = generateRandomStringArray(randomIntBetween(5, 10), randomIntBetween(10, 15), false, false);

List<ReservedClusterStateHandler<ProjectMetadata, ?>> projectHandlers = new ArrayList<>();
for (var key : randomStateKeys) {
Expand Down