You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Robert Kanter (JIRA)" <ji...@apache.org> on 2015/10/01 05:47:04 UTC
[jira] [Updated] (OOZIE-2378)
org.apache.oozie.client.TestOozieCLI.testAdminInstrumentation is flakey
[ https://issues.apache.org/jira/browse/OOZIE-2378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Kanter updated OOZIE-2378:
---------------------------------
Attachment: OOZIE-2378.001.patch
The patch fixes this by setting {{metricsInstrumentation}} to {{null}} if we're not using Metrics.
> org.apache.oozie.client.TestOozieCLI.testAdminInstrumentation is flakey
> -----------------------------------------------------------------------
>
> Key: OOZIE-2378
> URL: https://issues.apache.org/jira/browse/OOZIE-2378
> Project: Oozie
> Issue Type: Bug
> Components: tests
> Affects Versions: trunk
> Reporter: Robert Kanter
> Assignee: Robert Kanter
> Fix For: trunk
>
> Attachments: OOZIE-2378.001.patch
>
>
> {{org.apache.oozie.client.TestOozieCLI.testAdminInstrumentation}} is flakey.
> If {{testAdminMetrics()}} happens to run before {{testAdminInstrumentation()}}, then {{V2AdminServlet}} will "remember" to use the {{/metrics}} endpoint instead of the {{/instrumentation}} endpoint because once set, it never gets unset. Even though the tests start a new instance of the servlet each time, the setting is in a static variable, so it persists.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)