Stanbol
  1. Stanbol
  2. STANBOL-8

Define/implement error handling strategy for EnhancementJobManager

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0-incubating
    • Component/s: Enhancer
    • Labels:
      None

      Description

      The Interface does not define how to handle EngineExceptions of single engines while enhancing parsed content Items.

      The InMemoryJobManager implementation just forwards such exception what causes the whole enhancement request to fail if a single Engine encounters an exception. This might be the intended behavior in some cases, but might be unintended under other conditions. Especially on errors within semantic lifting type enhancement engines it might still make sense to return enhancement results of previous engines.

      One possible way would also to include an "enhancement report" in the response that provides information about errors and warnings during the enhancement process. This might be also a nice feature for the still unimplemented async. enhancement mode, because than such a report could also contain a listing of expected, but still missing enhancement results.

      best
      Rupert Westenthaler

        Issue Links

          Activity

          Hide
          Florent ANDRE added a comment -

          Witch format for the "enhancement report" we can imagine ?
          Do we store this report in the Content Item ?

          In the camel implementation, depending on the route defined, some engines could be not enabled at the time of processing. Camel offer a way to deal with such errors, and (have to be check in details) to do some business logic when errors appears.

          Show
          Florent ANDRE added a comment - Witch format for the "enhancement report" we can imagine ? Do we store this report in the Content Item ? In the camel implementation, depending on the route defined, some engines could be not enabled at the time of processing. Camel offer a way to deal with such errors, and (have to be check in details) to do some business logic when errors appears.
          Hide
          Rupert Westenthaler added a comment -

          I think we should add such information to the metadata of the ContentItem. We would just need to add an according vocabulary to the Stanbol Enhancement Structure (see STANBOL-351)

          Show
          Rupert Westenthaler added a comment - I think we should add such information to the metadata of the ContentItem. We would just need to add an according vocabulary to the Stanbol Enhancement Structure (see STANBOL-351 )
          Hide
          Rupert Westenthaler added a comment -

          A vocabulary allowing to describe Errors/Warnings encountered during the Enhancement process needs to be included in the Stanbol Enhancement Structure.

          Show
          Rupert Westenthaler added a comment - A vocabulary allowing to describe Errors/Warnings encountered during the Enhancement process needs to be included in the Stanbol Enhancement Structure.
          Hide
          Rupert Westenthaler added a comment -

          The ExecutionPlan now used by EnhancementChains allows to define optional and required ExecutionNodes. This alls to define if a failed execution of an engine should cause the whole enhancement process to fail or not (see STANBOL-431)

          Show
          Rupert Westenthaler added a comment - The ExecutionPlan now used by EnhancementChains allows to define optional and required ExecutionNodes. This alls to define if a failed execution of an engine should cause the whole enhancement process to fail or not (see STANBOL-431 )

            People

            • Assignee:
              Unassigned
              Reporter:
              Rupert Westenthaler
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development