Skip to content

Commit

Permalink
Track down failure given that it OOMs the test harness
Browse files Browse the repository at this point in the history
  • Loading branch information
droberts195 committed Mar 19, 2024
1 parent d093fb3 commit ae2cb66
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.elasticsearch.ingest.ConfigurationUtils;
import org.elasticsearch.ingest.IngestMetadata;
import org.elasticsearch.ingest.Pipeline;
import org.elasticsearch.logging.LogManager;
import org.elasticsearch.transport.Transports;

import java.util.HashMap;
Expand Down Expand Up @@ -76,7 +77,11 @@ public static int countInferenceProcessors(ClusterState state) {
*/
@SuppressWarnings("unchecked")
public static Map<String, Set<String>> pipelineIdsByResource(ClusterState state, Set<String> ids) {
assert Transports.assertNotTransportThread("non-trivial nested loops over cluster state structures");
try {
assert Transports.assertNotTransportThread("non-trivial nested loops over cluster state structures");
} catch (AssertionError e) {
LogManager.getLogger(InferenceProcessorInfoExtractor.class).fatal("should not be here", e);
}
Map<String, Set<String>> pipelineIdsByModelIds = new HashMap<>();
Metadata metadata = state.metadata();
if (metadata == null) {
Expand Down

0 comments on commit ae2cb66

Please sign in to comment.