Skip to content

Commit

Permalink
Adjusting the location of the _cat/indices debug (#47037)
Browse files Browse the repository at this point in the history
Relates #45652

The most recent failure suggests the exception is
thrown earlier than previously assumed.
  • Loading branch information
droberts195 authored Sep 24, 2019
1 parent c5939db commit 93c854d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ public void onResponse(final GetSettingsResponse getSettingsResponse) {

@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.debug("_cat/indices returning index_not_found_exception", e);
}
listener.onFailure(e);
}
});
Expand Down Expand Up @@ -227,11 +232,6 @@ 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.debug("_cat/indices returning index_not_found_exception", e);
}
listener.onFailure(e);
}
}, size);
Expand Down

0 comments on commit 93c854d

Please sign in to comment.