Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-2791

Add support for multiple output fields to FixedTupleSpout

    XMLWordPrintableJSON

Details

    Description

      The class FixedTupleSpout is useful for emitting test tuples in end-to-end topology tests. Unfortunately it appears to only support a single output field, which greatly limits what topologies you can test with.

      In the PR, I propose adding a new constructor to FixedTupleSpout to allow specifying more than one field.

      I also decided to deprecate the existing constructor which accepts a String due to the fact that it will cause an ambiguity compilation error if the calling code is passing in null, so it should probably be entirely removed at a later point.

      I created a PR against master and against the 1.x branch.

      Attachments

        Activity

          People

            ddara Daniel Dara
            ddara Daniel Dara
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m