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

Topology visualization breaks when ':transferred' in executor stats doesn't have any informations

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0, 1.1.0, 1.0.3
    • Component/s: storm-core
    • Labels:
      None

      Description

      When opening Topology Visualization, below error is shown to the console of browser:

      visualization.js:314 Uncaught TypeError: Cannot read property 'default' of undefined
          at gather_stream_count (visualization.js:314)
          at Object.<anonymous> (visualization.js:117)
          at Node.<anonymous> (arbor.js:35)
          at Function.each (jquery-1.11.1.min.js:2)
          at Object.eachNode (arbor.js:35)
          at Object.redraw (visualization.js:114)
          at screenUpdate (arbor.js:33)
      

      This is due to the fact that some executors doesn't have stats for ':transferred'.
      Below is the part of API response, and you can see some executors are having children for ':transferred' whereas others are not having children.

      ":stats":[
               {
                  ":host":"192.168.0.2",
                  ":port":6700,
                  ":uptime_secs":16,
                  ":transferred":{
                     "10800":{
                        "s__system1771886016":0
                     },
                     "86400":{
                        "s__system1771886016":0
                     },
                     ":all-time":{
                        "s__system1771886016":0
                     },
                     "600":{
                        "s__system1771886016":0
                     }
                  }
               },
               {
                  ":host":"192.168.0.2",
                  ":port":6700,
                  ":uptime_secs":16,
                  ":transferred":{
      
                  }
               },
               {
                  ":host":"192.168.0.2",
                  ":port":6700,
                  ":uptime_secs":16,
                  ":transferred":{
                     "10800":{
                        "default722480637":20
                     },
                     "86400":{
                        "default722480637":20
                     },
                     ":all-time":{
                        "default722480637":20
                     },
                     "600":{
                        "default722480637":20
                     }
                  }
               },
               {
                  ":host":"192.168.0.2",
                  ":port":6700,
                  ":uptime_secs":16,
                  ":transferred":{
                     "10800":{
                        "default722480637":20
                     },
                     "86400":{
                        "default722480637":20
                     },
                     ":all-time":{
                        "default722480637":20
                     },
                     "600":{
                        "default722480637":20
                     }
                  }
               }
            ]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kabhwan Jungtaek Lim
                Reporter:
                kabhwan Jungtaek Lim
              • Votes:
                0 Vote for this issue
                Watchers:
                1 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 - 50m
                  50m