hue: Oozie job browser's graph do not show red/green bars for failed/successful subworkflows

Describe the bug:

While testing a failed coordinator run with the new Hue version I noticed that the Oozie’s Job browser graph doesn’t show anymore red/green bars under the subworkflows failed/completed. It is more difficult to find what was the problem and debug it under this conditions 😦

To visualize:

Current behavior: Screen Shot 2020-09-22 at 8 44 04 AM



Expected/old behavior: Screen Shot 2020-09-22 at 8 44 56 AM

I noticed the following JS error though:

hue.errorcatcher.34bb8f5ecd32.js:31 Hue detected a Javascript error:  https://hue-next.wikimedia.org/static/desktop/js/bundles/hue/vendors~hue~notebook~tableBrowser-chunk-4d9d2c608a19e4e1ab7a.51951e55bebc.js 1705 2 Uncaught Error: Syntax error, unrecognized expression: [id^=wdg_@add_partition]
window.onerror @ hue.errorcatcher.34bb8f5ecd32.js:31
jquery.js:1677 Uncaught Error: Syntax error, unrecognized expression: [id^=wdg_@add_partition]
    at Function.Sizzle.error (jquery.js:1677)
    at Sizzle.tokenize (jquery.js:2377)
    at Sizzle.select (jquery.js:2838)
    at Function.Sizzle [as find] (jquery.js:894)
    at jQuery.fn.init.find (jquery.js:3095)
    at new jQuery.fn.init (jquery.js:3205)
    at jQuery (jquery.js:157)
    at <anonymous>:66:25
    at Object.D (knockout-latest.js:11)
    at Object.success (<anonymous>:59:26)
    at fire (jquery.js:3496)
    at Object.fireWith [as resolveWith] (jquery.js:3626)
    at done (jquery.js:9786)
    at XMLHttpRequest.<anonymous> (jquery.js:10047)

Steps to reproduce it?

Simply navigate to an URL like /hue/jobbrowser/jobs/0009826-200915132022208-oozie-oozi-W#!id=0009824-200915132022208-oozie-oozi-W.

Hue version or source? (e.g. open source 4.5, CDH 5.16, CDP 1.0…). System info (e.g. OS, Browser…).

4.7.1

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 25 (15 by maintainers)

Commits related to this issue

Most upvoted comments

We just need to escape special characters here, as per jQuery guidelines “To use any of the meta-characters ( such as !”#$%&'()*+,./:;<=>?@[]^`{|}~ ) as a literal part of a name, it must be escaped with with two backslashes: \". I’ll send a PR escaping these.