Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add temporary logging to help debug _cat/indices 404 #46739

Merged
merged 2 commits into from
Sep 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.debug("_cat/indices returning index_not_found_exception", e);
}
listener.onFailure(e);
}
}, size);
Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugin/ml/qa/native-multi-node-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ testClusters.integTest {
setting 'xpack.security.audit.enabled', 'false'
setting 'xpack.license.self_generated.type', 'trial'
setting 'xpack.ml.min_disk_space_off_heap', '200mb'
// TODO: remove when the cause of https://github.com/elastic/elasticsearch/issues/45652 is understood
setting 'logger.org.elasticsearch.rest.action.cat', 'DEBUG'

keystore 'bootstrap.password', 'x-pack-test-password'
keystore 'xpack.security.transport.ssl.secure_key_passphrase', 'testnode'
Expand Down