Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-1084

User thread does not see errors from the processor thread when using the StreamProcessor API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Resolved
    • None
    • 0.13.0
    • None
    • None

    Description

      The current user model for StreamProcessor API allows the user to start (asynchronous) and stop processor. awaitStart allows the user to wait until the processor actually initializes and starts processing messages. There are certain limitations to this API:
      1. In case the processor fails during processing or prior to processing, the error is not propagated to the user context. It is very hard to troubleshoot and take action on error/shutdown.
      2. There is also no way for the user to check the status of the processor.
      3. (More of implementation detail than an API issue) Another issue is that we are using an Executor to run the container in a separate thread. The container uses another Executor to run the tasks. We need to understand the performance impact of using 2 levels of Executors in a single StreamProcessor instance.

      Attachments

        Issue Links

          Activity

            People

              navina Navina Ramesh
              navina Navina Ramesh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: