Skip to content

Commit

Permalink
[Workload Management] Add Workload Management IT (#16359)
Browse files Browse the repository at this point in the history
* add workload management IT
Signed-off-by: Ruirui Zhang <[email protected]>

* address comments
Signed-off-by: Ruirui Zhang <[email protected]>

---------

Signed-off-by: Ruirui Zhang <[email protected]>
  • Loading branch information
ruai0511 authored Jan 6, 2025
1 parent 4a53ff2 commit e73ffdf
Show file tree
Hide file tree
Showing 3 changed files with 442 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Support for keyword fields in star-tree index ([#16233](https://github.com/opensearch-project/OpenSearch/pull/16233))
- Add a flag in QueryShardContext to differentiate inner hit query ([#16600](https://github.com/opensearch-project/OpenSearch/pull/16600))
- Add vertical scaling and SoftReference for snapshot repository data cache ([#16489](https://github.com/opensearch-project/OpenSearch/pull/16489))
- [Workload Management] Add Workload Management IT ([#16359](https://github.com/opensearch-project/OpenSearch/pull/16359))
- Support prefix list for remote repository attributes([#16271](https://github.com/opensearch-project/OpenSearch/pull/16271))
- Add new configuration setting `synonym_analyzer`, to the `synonym` and `synonym_graph` filters, enabling the specification of a custom analyzer for reading the synonym file ([#16488](https://github.com/opensearch-project/OpenSearch/pull/16488)).
- Add stats for remote publication failure and move download failure stats to remote methods([#16682](https://github.com/opensearch-project/OpenSearch/pull/16682/))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public void testSearchCancellationWithBackpressureDisabled() throws InterruptedE
assertNull("SearchShardTask shouldn't have cancelled for monitor_only mode", caughtException);
}

private static class ExceptionCatchingListener implements ActionListener<TestResponse> {
public static class ExceptionCatchingListener implements ActionListener<TestResponse> {
private final CountDownLatch latch;
private Exception exception = null;

Expand All @@ -333,7 +333,11 @@ public void onFailure(Exception e) {
latch.countDown();
}

private Exception getException() {
public CountDownLatch getLatch() {
return latch;
}

public Exception getException() {
return exception;
}
}
Expand All @@ -349,7 +353,7 @@ private Supplier<String> descriptionSupplier(String description) {
return () -> description;
}

interface TaskFactory<T extends Task> {
public interface TaskFactory<T extends Task> {
T createTask(long id, String type, String action, String description, TaskId parentTaskId, Map<String, String> headers);
}

Expand Down
Loading

0 comments on commit e73ffdf

Please sign in to comment.