[ 
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)

Reply via email to