Skip to content

Commit c6a60b7

Browse files
committed
Missing mock
1 parent 6a6c27a commit c6a60b7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

server/src/test/java/org/elasticsearch/rest/action/document/RestBulkActionTests.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,14 @@ public void next() {
228228

229229
IndexingPressure indexingPressure = new IndexingPressure(Settings.EMPTY);
230230
RestBulkAction.ChunkHandler chunkHandler = new RestBulkAction.ChunkHandler(true, request, () -> {
231-
return new IncrementalBulkService.Handler(null, indexingPressure, null, null, null, null) {
231+
return new IncrementalBulkService.Handler(
232+
null,
233+
indexingPressure,
234+
null,
235+
null,
236+
null,
237+
MeterRegistry.NOOP.getLongHistogram(IncrementalBulkService.CHUNK_WAIT_TIME_HISTOGRAM_NAME)
238+
) {
232239

233240
@Override
234241
public void addItems(List<DocWriteRequest<?>> items, Releasable releasable, Runnable nextItems) {

0 commit comments

Comments
 (0)