Skip to content

Commit 0ff48cf

Browse files
committed
Resolve TODOs
1 parent 0065a87 commit 0ff48cf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/action/filter/ShardBulkInferenceActionFilter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,6 @@ private boolean incrementIndexingPressure(IndexRequestWithIndexingPressure index
619619
coordinatingIndexingPressure.increment(1, indexRequest.getIndexRequest().source().ramBytesUsed());
620620
indexRequest.setIndexingPressureIncremented();
621621
} catch (EsRejectedExecutionException e) {
622-
// TODO: Safe to assume ID is set/generated at this point?
623622
addInferenceResponseFailure(
624623
itemIndex,
625624
new InferenceException(
@@ -733,7 +732,6 @@ private void applyInferenceResponses(BulkItemRequest item, FieldInferenceRespons
733732
try {
734733
coordinatingIndexingPressure.increment(0, modifiedSourceSize - originalSource.ramBytesUsed());
735734
} catch (EsRejectedExecutionException e) {
736-
// TODO: Safe to assume ID is set/generated at this point?
737735
indexRequest.source(originalSource, indexRequest.getContentType());
738736
item.abort(
739737
item.index(),

0 commit comments

Comments
 (0)