Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-864

DataImportHandler does not catch and log Errors

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Labels:
      None

      Description

      DataImportHandler catches only 'Exception' types but not 'Error' sub-classes, therefore, errors like StackOverflowError and others silently slip by and are not logged anywhere. Even though DataImportHandler does not commit documents in such case, in the absence of an entry in the log, it becomes very difficult to track down the cause.

      Look at http://markmail.org/message/mhqae66p262d5mcc for discussion on solr-user.

      DataImportHandler should catch Throwable and log all errors/exceptions.

        Attachments

        1. SOLR-864.patch
          4 kB
          Shalin Shekhar Mangar

          Activity

            People

            • Assignee:
              shalinmangar Shalin Shekhar Mangar
              Reporter:
              shalinmangar Shalin Shekhar Mangar
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: