getLogger().error("Splunk request status code:" + e.getStatus() + " Retrying the request."); splunkService.logout(); splunkService = createSplunkService(context);
/** * Stops the current search and deletes the result cache. * * @return The search job. */ public Job cancel() { try { return control("cancel"); } catch (HttpException e) { if (e.getStatus() == 404) { // Already cancelled; cancel is a nop. } else { throw e; } } return this; }
if (e.getStatus() == 404) continue; throw e;