Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-12121

Sometime metrics for the streaming pipeline does not show up on the UI.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.3.0, 4.2.0
    • Component/s: UI
    • Labels:
    • Rank:
      1|i00513:

      Description

      Sometimes metrics for the spark streaming does not get show up in the UI on pipeline page, but these metrics can be seen using dashboard.

      Following javascript error is seen

      lib-94b4436167.js:2 TypeError: Cannot read property 'scope' of undefined
          at common-a726122e86.es6.js:236
          at Object.o [as forEach] (lib-94b4436167.js:1)
          at Object.fn (common-a726122e86.es6.js:235)
          at f.$digest (lib-94b4436167.js:3)
          at e.$apply (lib-94b4436167.js:3)
          at Object.<anonymous> (lib-94b4436167.js:64)
          at Object.emit (lib-94b4436167.js:63)
          at i.l.onmessage (lib-94b4436167.js:64)
          at i.r.dispatchEvent (lib-94b4436167.js:10)
          at lib-94b4436167.js:10
      

      Issue happens because we first query for the all available metric names (user and system) for a particular program. The list is then filter to get the user metric names. Current filtering logic

      metric name contains node name

      incorrectly returns the system metrics as well, which causes the above javascript error.

      The workaround is to label the node differently so that "contains" check fail for the system metrics.

        Attachments

          Activity

            People

            • Assignee:
              ajai Ajai Narayan
              Reporter:
              sagar Sagar Kapare
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: