You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (Jira)" <ji...@apache.org> on 2019/12/06 16:19:00 UTC

[jira] [Closed] (FLINK-15085) History server overview page fails loading because of web-submit feature not in the config

     [ https://issues.apache.org/jira/browse/FLINK-15085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chesnay Schepler closed FLINK-15085.
------------------------------------
    Resolution: Fixed

master: 1b0b289bc16fe9f0b519daa36ab2073f57fce38f

> History server overview page fails loading because of web-submit feature not in the config
> ------------------------------------------------------------------------------------------
>
>                 Key: FLINK-15085
>                 URL: https://issues.apache.org/jira/browse/FLINK-15085
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / Web Frontend
>    Affects Versions: 1.10.0
>            Reporter: chaganti spurthi
>            Assignee: Chesnay Schepler
>            Priority: Blocker
>              Labels: pull-request-available
>             Fix For: 1.10.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> History server has javascript errors while loading the overview page, because the web-submit feature not found in the config. 
> {code:java}
> main.9c4be059472ea41d7052.js:1 ERROR TypeError: Cannot read property 'web-submit' of undefined
>     at new t (main.9c4be059472ea41d7052.js:1)
>     at qr (main.9c4be059472ea41d7052.js:1)
>     at Gr (main.9c4be059472ea41d7052.js:1)
>     at ko (main.9c4be059472ea41d7052.js:1)
>     at Oo (main.9c4be059472ea41d7052.js:1)
>     at Object.Bo [as createRootView] (main.9c4be059472ea41d7052.js:1)
>     at e.create (main.9c4be059472ea41d7052.js:1)
>     at e.create (main.9c4be059472ea41d7052.js:1)
>     at t.bootstrap (main.9c4be059472ea41d7052.js:1)
>     at main.9c4be059472ea41d7052.js:1
> {code}
> It seems to be coming since FLINK-13818: [https://github.com/apache/flink/pull/9883]
> The issue is that for history server we are not setting the web-submit feature in the conf and the /config endpoint returns 
> {code:java}
> {"refresh-interval":10000,"timezone-offset":-18000000,"timezone-name":"Eastern Time","flink-version":"<unknown>","flink-revision":"d9f8abb @ 04.12.2019 @ 16:16:24 EST"}{code}
> while as in the Jobmanager the /config endpoint returns
> {code:java}
> {"refresh-interval":3000,"timezone-name":"Coordinated Universal Time","timezone-offset":0,"flink-version":"1.9-criteo-rc1-1573156762","flink-revision":"366237a @ 07.11.2019 @ 20:00:32 UTC","features":{"web-submit":true}}
> {code}
> *AppComponent.ts* fails at this line because the feature web-submit is not found in the config:
> {code:java}
> webSubmitEnabled = this.statusService.configuration.features['web-submit'];
> {code}
> This can be fixed in two ways:
>  # Add defensive check in the *AppComponent.ts* 
> {code:java}
>  webSubmitEnabled =
>     (this.statusService.configuration &&
>         this.statusService.configuration.features &&
>             this.statusService.configuration.features['web-submit']);{code}
>  # Add the features property in the config file that *HistoryServer.java* generates.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)