mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
removed an unneeded getInputStream command which threw a FileNotFound exception. Also - no exporting will occur if loading/verifying index template failed (but it will keep on retrying).
This commit is contained in:
parent
c0be4069da
commit
2f45c9638e
1 changed files with 4 additions and 4 deletions
|
@ -432,8 +432,8 @@ public class ESExporter extends AbstractLifecycleComponent<ESExporter> implement
|
|||
return false;
|
||||
}
|
||||
|
||||
boolean hasDoc = conn.getResponseCode() == 200;
|
||||
conn.getInputStream().close(); // close and release to connection pool.
|
||||
boolean hasDoc;
|
||||
hasDoc = conn.getResponseCode() == 200;
|
||||
|
||||
// nothing there, lets create it
|
||||
if (!hasDoc) {
|
||||
|
@ -464,8 +464,8 @@ public class ESExporter extends AbstractLifecycleComponent<ESExporter> implement
|
|||
try {
|
||||
return checkAndUpload("_template/marvel", template);
|
||||
} catch (IOException e) {
|
||||
logger.error("error when checking/adding index template", e);
|
||||
return false;
|
||||
// if we're not sure of the template, we can't send data... re-raise exception.
|
||||
throw new ElasticSearchException("failed to load/verify index template", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue