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

Refactor SystemAdmin Interface to expose a common method to create streams.

    XMLWordPrintableJSON

Details

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

    Description

      With samza-1041, we plan to automatically create intermediate streams for a given graph. To do this, we need a generic way to create streams on all supported systems.

      We currently auto-create streams for checkpoints, coordinatorStream, and changelogs, we do so using a fragmented set of interfaces and methods. e.g. to create a checkpoint topic, the KafkaCheckpointMnager.start() creates the topic using KafkaUtil directly, whereas for the coordinatorStream, we call the SystemAdmin.createCoordinatorStream() method. The former is specific to a particular System, but the latter is theoretically (but not actually) implemented for every System.

      Instead of using custom methods in differing levels of abstraction, we should just expose one simple createStream() method in the SystemAdmin interface and deprecate the old methods. The new createStream method will receive a complete, system-specific blueprint/specification for the stream and use that to create the actual stream.

      Attachments

        Issue Links

          Activity

            People

              jmakes Jake Maes
              jmakes Jake Maes
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: