File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
modules/ingest-common/src/internalClusterTest/java/org/elasticsearch/ingest/common
server/src/internalClusterTest/java/org/elasticsearch/ingest Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 2020import org .elasticsearch .action .support .WriteRequest ;
2121import org .elasticsearch .client .internal .Requests ;
2222import org .elasticsearch .cluster .block .ClusterBlockException ;
23+ import org .elasticsearch .cluster .metadata .ProjectId ;
2324import org .elasticsearch .cluster .node .DiscoveryNodeRole ;
2425import org .elasticsearch .common .settings .Settings ;
2526import org .elasticsearch .common .util .concurrent .EsRejectedExecutionException ;
@@ -112,7 +113,12 @@ public void testFailureInConditionalProcessor() {
112113 NodesStatsResponse r = clusterAdmin ().prepareNodesStats (internalCluster ().getNodeNames ()).setIngest (true ).get ();
113114 int nodeCount = r .getNodes ().size ();
114115 for (int k = 0 ; k < nodeCount ; k ++) {
115- List <IngestStats .ProcessorStat > stats = r .getNodes ().get (k ).getIngestStats ().processorStats ().get (pipelineId );
116+ List <IngestStats .ProcessorStat > stats = r .getNodes ()
117+ .get (k )
118+ .getIngestStats ()
119+ .processorStats ()
120+ .get (ProjectId .DEFAULT )
121+ .get (pipelineId );
116122 for (IngestStats .ProcessorStat st : stats ) {
117123 assertThat (st .stats ().ingestCurrent (), greaterThanOrEqualTo (0L ));
118124 }
Original file line number Diff line number Diff line change 1515import org .elasticsearch .action .admin .cluster .stats .ClusterStatsResponse ;
1616import org .elasticsearch .action .bulk .BulkRequest ;
1717import org .elasticsearch .action .index .IndexRequest ;
18+ import org .elasticsearch .cluster .metadata .ProjectId ;
1819import org .elasticsearch .common .Strings ;
1920import org .elasticsearch .plugins .Plugin ;
2021import org .elasticsearch .script .MockScriptEngine ;
@@ -109,7 +110,10 @@ public void testIngestStatsNamesAndTypes() throws IOException {
109110 assertThat (pipelineStat .pipelineId (), equalTo ("pipeline1" ));
110111 assertThat (pipelineStat .stats ().ingestCount (), equalTo (1L ));
111112
112- List <IngestStats .ProcessorStat > processorStats = stats .getIngestStats ().processorStats ().get ("pipeline1" );
113+ List <IngestStats .ProcessorStat > processorStats = stats .getIngestStats ()
114+ .processorStats ()
115+ .get (ProjectId .DEFAULT )
116+ .get ("pipeline1" );
113117 assertThat (processorStats .size (), equalTo (4 ));
114118
115119 IngestStats .ProcessorStat setA = processorStats .get (0 );
You can’t perform that action at this time.
0 commit comments