@Override public void run() { Random random = LuceneTestCase.random(); int numSearches = 0; while (!stop) { numSearches++; try { //to come to the aid of their country. cloudClient.query(new SolrQuery(QUERIES[random.nextInt(QUERIES.length)])); } catch (Exception e) { System.err.println("QUERY REQUEST FAILED:"); e.printStackTrace(); if (e instanceof SolrServerException) { System.err.println("ROOT CAUSE:"); ((SolrServerException) e).getRootCause().printStackTrace(); } queryFails.incrementAndGet(); } try { Thread.sleep(random.nextInt(4000) + 300); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } log.info("num searches done:" + numSearches + " with " + queryFails + " fails"); }
if (e instanceof SolrServerException) { System.err.println("ROOT CAUSE for id=" + deleteId); ((SolrServerException) e).getRootCause().printStackTrace(); if (e instanceof SolrServerException) { System.err.println("ROOT CAUSE for id=" + id); ((SolrServerException) e).getRootCause().printStackTrace();
if (e.getRootCause() instanceof IOException) { ex = e; moveAliveToDead(solrServer);
if (e.getRootCause() instanceof IOException) { ex = e; moveAliveToDead(wrapper); if (e.getRootCause() instanceof IOException) { ex = e;
if (e.getRootCause() instanceof IOException) { ex = e; moveAliveToDead(wrapper); if (e.getRootCause() instanceof IOException) { ex = e;
Throwable rootCause = e.getRootCause(); if (!isUpdate && rootCause instanceof IOException) { ex = (!isZombie) ? addZombie(client, e) : e;
Throwable rootCause = e.getRootCause(); if (!isNonRetryable && rootCause instanceof IOException) { ex = (!isZombie) ? addZombie(client, e) : e;
Throwable cause = rb.rsp.getException(); if (cause instanceof SolrServerException) { cause = ((SolrServerException)cause).getRootCause(); } else { if (cause.getCause() != null) {