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

Blank Container Screen from Admin UI w/ message rates

    XMLWordPrintable

    Details

    • Type: Story
    • Status: To Do
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.1 GA
    • Fix Version/s: None
    • Component/s: REST, Stream Module
    • Labels:
      None
    • Story Points:
      3
    • Rank (Obsolete):
      9223372036854775807
    • Acceptance Criteria:
      Hide

      Admin page should be able to handle when a message rate is not found and produce an N/A if it is not possible to get the real message rate (since it may be on a different jvm and possibly a different server)

      Show
      Admin page should be able to handle when a message rate is not found and produce an N/A if it is not possible to get the real message rate (since it may be on a different jvm and possibly a different server)

      Description

      With message rates enabled and container management enabled, if you deploy a streaming module, the container page may be blank. Because the streaming module builds the channels outside the spring context (spark receiver is ran in the spark cluster not in xd) there is no need to setup the input and/or output channels. When these channels aren't defined the rest call from admin UI will fail because it will not find the message rates returned in the JSON from the JMX call.

      Advice - Caught exception while handling a request
      org.codehaus.jettison.json.JSONException: JSONObject["value"] not found.
              at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360)
              at org.codehaus.jettison.json.JSONObject.getJSONObject(JSONObject.java:454)
              at org.springframework.xd.dirt.rest.ContainersController.getMessageRate(ContainersController.java:146)
              at org.springframework.xd.dirt.rest.ContainersController.list(ContainersController.java:121)
      

      As a work around, I have included the input and output channels for a spark streaming processor which is not used anywhere. This gives a bad side affect of looking like the module isn't processing with message rates of 0, but everything else is now shown.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iperumal Ilayaperumal Gopinathan
              Reporter:
              jahubba Jason Hubbard
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: