Skip to content

Commit

Permalink
add WorkloadManagementIT
Browse files Browse the repository at this point in the history
Signed-off-by: Ruirui Zhang <[email protected]>
  • Loading branch information
ruai0511 committed Oct 16, 2024
1 parent 51a7801 commit 054961a
Show file tree
Hide file tree
Showing 2 changed files with 346 additions and 24 deletions.
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 054961a

Please sign in to comment.