Skip to content

Commit

Permalink
Add temporary logging to help debug _cat/indices 404
Browse files Browse the repository at this point in the history
This logging is to help debug
elastic#45652
and will be removed once the cause is known.
  • Loading branch information
droberts195 committed Sep 16, 2019
1 parent 9c9ddaa commit 1baf15f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.time.DateFormatter;
import org.elasticsearch.common.unit.TimeValue;
import org.elasticsearch.index.IndexNotFoundException;
import org.elasticsearch.index.IndexSettings;
import org.elasticsearch.rest.RestController;
import org.elasticsearch.rest.RestRequest;
Expand Down Expand Up @@ -226,6 +227,11 @@ public void onResponse(final Collection<ActionResponse> responses) {

@Override
public void onFailure(final Exception e) {
// Temporary logging to help debug https://github.com/elastic/elasticsearch/issues/45652
// TODO: remove this when we understand why _cat/indices sometimes returns a 404
if (e instanceof IndexNotFoundException) {
logger.info("_cat/indices returning index_not_found_exception", e);
}
listener.onFailure(e);
}
}, size);
Expand Down

0 comments on commit 1baf15f

Please sign in to comment.