Revision 7802
Added by Jing Tao almost 11 years ago
SolrIndex.java | ||
---|---|---|
406 | 406 |
try { |
407 | 407 |
EventlogFactory.createIndexEventLog().write(event); |
408 | 408 |
} catch (Exception e) { |
409 |
log.error("SolrIndex.insertToIndex - IndexEventLog can't insert the solr doc to the solr server :"+e.getMessage());
|
|
409 |
log.error("SolrIndex.insertToIndex - IndexEventLog can't log the index inserting event :"+e.getMessage());
|
|
410 | 410 |
} |
411 | 411 |
} catch (SolrServerException e) { |
412 | 412 |
event.setType(IndexEvent.FAILUREINSERT); |
... | ... | |
414 | 414 |
try { |
415 | 415 |
EventlogFactory.createIndexEventLog().write(event); |
416 | 416 |
} catch (Exception ee) { |
417 |
log.error("SolrIndex.insertToIndex - IndexEventLog can't insert the solr doc to the solr server :"+ee.getMessage());
|
|
417 |
log.error("SolrIndex.insertToIndex - IndexEventLog can't log the index inserting event :"+ee.getMessage());
|
|
418 | 418 |
} |
419 | 419 |
throw e; |
420 | 420 |
} catch (IOException e) { |
... | ... | |
423 | 423 |
try { |
424 | 424 |
EventlogFactory.createIndexEventLog().write(event); |
425 | 425 |
} catch (Exception ee) { |
426 |
log.error("SolrIndex.insertToIndex - IndexEventLog can't insert the solr doc to the solr server :"+ee.getMessage());
|
|
426 |
log.error("SolrIndex.insertToIndex - IndexEventLog can't log the index inserting event :"+ee.getMessage());
|
|
427 | 427 |
} |
428 | 428 |
throw e; |
429 | 429 |
|
... | ... | |
637 | 637 |
try { |
638 | 638 |
EventlogFactory.createIndexEventLog().write(event); |
639 | 639 |
} catch (Exception e) { |
640 |
log.error("SolrIndex.removeFromIndex - IndexEventLog can't insert the solr doc to the solr server :"+e.getMessage());
|
|
640 |
log.error("SolrIndex.removeFromIndex - IndexEventLog can't log the index deleting event :"+e.getMessage());
|
|
641 | 641 |
} |
642 | 642 |
} catch (SolrServerException e) { |
643 | 643 |
event.setType(IndexEvent.FAILUREDELETE); |
... | ... | |
645 | 645 |
try { |
646 | 646 |
EventlogFactory.createIndexEventLog().write(event); |
647 | 647 |
} catch (Exception ee) { |
648 |
log.error("SolrIndex.removeFromIndex - IndexEventLog can't insert the solr doc to the solr server :"+ee.getMessage());
|
|
648 |
log.error("SolrIndex.removeFromIndex - IndexEventLog can't log the index deleting event :"+ee.getMessage());
|
|
649 | 649 |
} |
650 | 650 |
throw e; |
651 | 651 |
|
... | ... | |
655 | 655 |
try { |
656 | 656 |
EventlogFactory.createIndexEventLog().write(event); |
657 | 657 |
} catch (Exception ee) { |
658 |
log.error("SolrIndex.removeFromIndex - IndexEventLog can't insert the solr doc to the solr server :"+ee.getMessage());
|
|
658 |
log.error("SolrIndex.removeFromIndex - IndexEventLog can't log the index deleting event :"+ee.getMessage());
|
|
659 | 659 |
} |
660 | 660 |
throw e; |
661 | 661 |
} |
Also available in: Unified diff
Log the timed index jobs.