[ https://issues.apache.org/jira/browse/HDFS-10184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15204670#comment-15204670 ]
Haohui Mai commented on HDFS-10184: ----------------------------------- Unless we move to Java 8 this is a non starter. The UI is heavily driven by HTML 5. Rhino, the JavaScript engine in Java 7, is at least 10x slower than Nashorn and node.js. I have written a JavaScript version of dfsadmin using Rhino and the performance is very unsatisfactory. Given the scope of the tests I'm not fully convinced it is a good idea. I believe that the new Web UI in YARN is adopiting npm / node.js -- these tools will be integrated with the current Jenkins workflow so the integration should not be an issue. > Introduce unit tests framework for HDFS UI > ------------------------------------------ > > Key: HDFS-10184 > URL: https://issues.apache.org/jira/browse/HDFS-10184 > Project: Hadoop HDFS > Issue Type: Test > Reporter: Haohui Mai > > The current HDFS UI is based on HTML5 and it does not have unit tests yet. > Occasionally things break and we can't catch it. We should investigate and > introduce unit test frameworks such as Mocha for the UI. -- This message was sent by Atlassian JIRA (v6.3.4#6332)