Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-1752

multiple streams with same port for HTTP Source

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: M6
    • Fix Version/s: 1.0 RC1
    • Component/s: Stream Module
    • Labels:
    • Story Points:
      4
    • Rank (Obsolete):
      1776

      Description

      Using a singleXD VM

      I can create multiple streams with the same http port.

      Stream Name Stream Definition Status
      ----------- ----------------- ------

      xd:>stream create --definition "http --port=8081|file --dir=/tmp/test3" --name test1 --deploy
      Created and deployed new stream 'test1'
      xd:>stream create --definition "http --port=8081|file --dir=/tmp/test3" --name test1 --deploy
      Created and deployed new stream 'test1'
      xd:>stream create --definition "http --port=8081|file --dir=/tmp/test3" --name test2 --deploy
      Created and deployed new stream 'test2'
      xd:>stream create --definition "http --port=8081|file --dir=/tmp/test3" --name test3 --deploy
      Created and deployed new stream 'test3'
      xd:>stream list
      Stream Name Stream Definition Status
      ----------- -------------------------------------- --------
      test1 http --port=8081|file --dir=/tmp/test3 deployed
      test2 http --port=8081|file --dir=/tmp/test3 deployed
      test3 http --port=8081|file --dir=/tmp/test3 deployed

      ISSUES
      1) No error is returned for the duplicate use of the port. In M5 an error was returned.
      2) The status shows as "deployed" for all three.
      3) Even though there are three streams. Only the first stream is active. I can post to the first stream that was declared and it will successfully post to the directory. If I post to the remaining streams, I don't get an error and I no data is written to the flle.
      4) If I remove the working stream, the remaining stream still don't work.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              aracelih Araceli Henley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: