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

Samza shutdown sequence throws exception

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0, 0.9.1
    • 0.10.0
    • None
    • None

    Description

      The current shutdown sequence has a problematic sequence for changelog attached stores:

          } finally {
            info("Shutting down.")
      
            shutdownConsumers
            shutdownTask
            shutdownProducers
            shutdownStores
            shutdownLocalityManager
            shutdownOffsetManager
            shutdownMetrics
      
            info("Shutdown complete.")
          }
      

      If the KV-stores has pending writes in cache and a changelog attached, shutdownStores will try to flush the store, which results in invoking producer.send(). However, the producers are already shutdown according to the above sequence. We need to move the shutdownProducers later than any shutdown procedure that would possibly flushing out pending writes to the system streams.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            nickpan47 Yi Pan
            nickpan47 Yi Pan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment