Skip to content

Commit 3162119

Browse files
rm TODO in _resolve/index
1 parent 10dc85e commit 3162119

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

server/src/main/java/org/elasticsearch/action/admin/indices/resolve/ResolveIndexAction.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -635,16 +635,6 @@ protected void doExecute(Task task, Request request, final ActionListener<Respon
635635
final Runnable terminalHandler = () -> {
636636
if (completionCounter.countDown()) {
637637
if (resolveCrossProject) {
638-
// TODO temporary fix: we need to properly handle the case where a remote does not return a result due to
639-
// a failure -- in the current version of resolve indices though, these are just silently ignored
640-
if (remoteRequests != remoteResponses.size()) {
641-
listener.onFailure(
642-
new IllegalStateException(
643-
"expected [" + remoteRequests + "] remote responses but got only [" + remoteResponses.size() + "]"
644-
)
645-
);
646-
return;
647-
}
648638
final Exception ex = CrossProjectIndexResolutionValidator.validate(
649639
originalIndicesOptions,
650640
request.getProjectRouting(),

0 commit comments

Comments
 (0)